window.GraphiQL=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=88)}([function(e,t,n){"use strict";n.d(t,"T",(function(){return b})),n.d(t,"x",(function(){return T})),n.d(t,"S",(function(){return E})),n.d(t,"w",(function(){return _})),n.d(t,"O",(function(){return x})),n.d(t,"u",(function(){return C})),n.d(t,"I",(function(){return O})),n.d(t,"o",(function(){return S})),n.d(t,"U",(function(){return w})),n.d(t,"y",(function(){return k})),n.d(t,"F",(function(){return N})),n.d(t,"l",(function(){return D})),n.d(t,"G",(function(){return A})),n.d(t,"m",(function(){return I})),n.d(t,"K",(function(){return L})),n.d(t,"q",(function(){return R})),n.d(t,"M",(function(){return F})),n.d(t,"s",(function(){return M})),n.d(t,"H",(function(){return j})),n.d(t,"n",(function(){return P})),n.d(t,"P",(function(){return V})),n.d(t,"v",(function(){return U})),n.d(t,"J",(function(){return B})),n.d(t,"p",(function(){return $})),n.d(t,"E",(function(){return H})),n.d(t,"k",(function(){return q})),n.d(t,"D",(function(){return G})),n.d(t,"j",(function(){return K})),n.d(t,"d",(function(){return z})),n.d(t,"e",(function(){return Q})),n.d(t,"V",(function(){return W})),n.d(t,"z",(function(){return Y})),n.d(t,"N",(function(){return J})),n.d(t,"t",(function(){return X})),n.d(t,"C",(function(){return Z})),n.d(t,"L",(function(){return ee})),n.d(t,"r",(function(){return te})),n.d(t,"B",(function(){return ne})),n.d(t,"g",(function(){return oe})),n.d(t,"f",(function(){return ae})),n.d(t,"A",(function(){return ue})),n.d(t,"i",(function(){return de})),n.d(t,"Q",(function(){return pe})),n.d(t,"c",(function(){return he})),n.d(t,"h",(function(){return me})),n.d(t,"a",(function(){return ve})),n.d(t,"b",(function(){return be})),n.d(t,"R",(function(){return Ee}));var r=n(3),i=n(16),o=n(25),a=n(21),s=n(6),l=n(23),u=n(20),c=n(17),f=n(15);function d(e){return e}var p=n(19),h=n(2),m=n(1),g=n(9),v=n(87),y=n(22);function b(e){return E(e)||x(e)||O(e)||w(e)||N(e)||A(e)||L(e)||F(e)}function T(e){if(!b(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL type.`);return e}function E(e){return Object(u.a)(e,oe)}function _(e){if(!E(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL Scalar type.`);return e}function x(e){return Object(u.a)(e,ae)}function C(e){if(!x(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL Object type.`);return e}function O(e){return Object(u.a)(e,he)}function S(e){if(!O(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL Interface type.`);return e}function w(e){return Object(u.a)(e,me)}function k(e){if(!w(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL Union type.`);return e}function N(e){return Object(u.a)(e,ve)}function D(e){if(!N(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL Enum type.`);return e}function A(e){return Object(u.a)(e,be)}function I(e){if(!A(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL Input Object type.`);return e}function L(e){return Object(u.a)(e,z)}function R(e){if(!L(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL List type.`);return e}function F(e){return Object(u.a)(e,Q)}function M(e){if(!F(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL Non-Null type.`);return e}function j(e){return E(e)||N(e)||A(e)||W(e)&&j(e.ofType)}function P(e){if(!j(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL input type.`);return e}function V(e){return E(e)||x(e)||O(e)||w(e)||N(e)||W(e)&&V(e.ofType)}function U(e){if(!V(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL output type.`);return e}function B(e){return E(e)||N(e)}function $(e){if(!B(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL leaf type.`);return e}function H(e){return x(e)||O(e)||w(e)}function q(e){if(!H(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL composite type.`);return e}function G(e){return O(e)||w(e)}function K(e){if(!G(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL abstract type.`);return e}class z{constructor(e){b(e)||Object(s.a)(!1,`Expected ${Object(r.a)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Q{constructor(e){J(e)||Object(s.a)(!1,`Expected ${Object(r.a)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function W(e){return L(e)||F(e)}function Y(e){if(!W(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL wrapping type.`);return e}function J(e){return b(e)&&!F(e)}function X(e){if(!J(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL nullable type.`);return e}function Z(e){if(e)return F(e)?e.ofType:e}function ee(e){return E(e)||x(e)||O(e)||w(e)||N(e)||A(e)}function te(e){if(!ee(e))throw new Error(`Expected ${Object(r.a)(e)} to be a GraphQL named type.`);return e}function ne(e){if(e){let t=e;for(;W(t);)t=t.ofType;return t}}function re(e){return"function"==typeof e?e():e}function ie(e){return"function"==typeof e?e():e}class oe{constructor(e){var t,n,i,o;const l=null!==(t=e.parseValue)&&void 0!==t?t:d;this.name=Object(y.b)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:d,this.parseValue=l,this.parseLiteral=null!==(i=e.parseLiteral)&&void 0!==i?i:(e,t)=>l(Object(v.a)(e,t)),this.extensions=Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(o=e.extensionASTNodes)&&void 0!==o?o:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||Object(s.a)(!1,this.name+' must provide "specifiedByURL" as a string, '+`but got: ${Object(r.a)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||Object(s.a)(!1,this.name+' must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.'),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||Object(s.a)(!1,this.name+' must provide both "parseValue" and "parseLiteral" functions.'))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ae{constructor(e){var t;this.name=Object(y.b)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>le(e),this._interfaces=()=>se(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||Object(s.a)(!1,this.name+' must provide "isTypeOf" as a function, '+`but got: ${Object(r.a)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fe(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function se(e){var t;const n=re(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||Object(s.a)(!1,e.name+" interfaces must be an Array or a function which returns an Array."),n}function le(e){const t=ie(e.fields);return ce(t)||Object(s.a)(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),Object(o.a)(t,(t,n)=>{var i;ce(t)||Object(s.a)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||Object(s.a)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${Object(r.a)(t.resolve)}.`);const o=null!==(i=t.args)&&void 0!==i?i:{};return ce(o)||Object(s.a)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:Object(y.b)(n),description:t.description,type:t.type,args:ue(o),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:Object(a.a)(t.extensions),astNode:t.astNode}})}function ue(e){return Object.entries(e).map(([e,t])=>({name:Object(y.b)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Object(a.a)(t.extensions),astNode:t.astNode}))}function ce(e){return Object(f.a)(e)&&!Array.isArray(e)}function fe(e){return Object(o.a)(e,e=>({description:e.description,type:e.type,args:de(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function de(e){return Object(l.a)(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function pe(e){return F(e.type)&&void 0===e.defaultValue}class he{constructor(e){var t;this.name=Object(y.b)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=le.bind(void 0,e),this._interfaces=se.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||Object(s.a)(!1,this.name+' must provide "resolveType" as a function, '+`but got: ${Object(r.a)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:fe(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class me{constructor(e){var t;this.name=Object(y.b)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=ge.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||Object(s.a)(!1,this.name+' must provide "resolveType" as a function, '+`but got: ${Object(r.a)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ge(e){const t=re(e.types);return Array.isArray(t)||Object(s.a)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class ve{constructor(e){var t,n,o;this.name=Object(y.b)(e.name),this.description=e.description,this.extensions=Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values=(n=this.name,ce(o=e.values)||Object(s.a)(!1,n+" values must be an object with value names as keys."),Object.entries(o).map(([e,t])=>(ce(t)||Object(s.a)(!1,`${n}.${e} must refer to an object with a "value" key representing an internal value but got: ${Object(r.a)(t)}.`),{name:Object(y.a)(e),description:t.description,value:void 0!==t.value?t.value:e,deprecationReason:t.deprecationReason,extensions:Object(a.a)(t.extensions),astNode:t.astNode}))),this._valueLookup=new Map(this._values.map(e=>[e.value,e])),this._nameLookup=Object(i.a)(this._values,e=>e.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(e){return this._nameLookup[e]}serialize(e){const t=this._valueLookup.get(e);if(void 0===t)throw new h.a(`Enum "${this.name}" cannot represent value: ${Object(r.a)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=Object(r.a)(e);throw new h.a(`Enum "${this.name}" cannot represent non-string value: ${t}.`+ye(this,t))}const t=this.getValue(e);if(null==t)throw new h.a(`Value "${e}" does not exist in "${this.name}" enum.`+ye(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.a.ENUM){const t=Object(g.a)(e);throw new h.a(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+ye(this,t),e)}const n=this.getValue(e.value);if(null==n){const t=Object(g.a)(e);throw new h.a(`Value "${t}" does not exist in "${this.name}" enum.`+ye(this,t),e)}return n.value}toConfig(){const e=Object(l.a)(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ye(e,t){const n=e.getValues().map(e=>e.name),r=Object(p.a)(t,n);return Object(c.a)("the enum value",r)}class be{constructor(e){var t;this.name=Object(y.b)(e.name),this.description=e.description,this.extensions=Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=Te.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=Object(o.a)(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function Te(e){const t=ie(e.fields);return ce(t)||Object(s.a)(!1,e.name+" fields must be an object with field names as keys or a function which returns such an object."),Object(o.a)(t,(t,n)=>(!("resolve"in t)||Object(s.a)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:Object(y.b)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Object(a.a)(t.extensions),astNode:t.astNode}))}function Ee(e){return F(e.type)&&void 0===e.defaultValue}},function(e,t,n){"use strict";let r;n.d(t,"a",(function(){return r})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n(15),i=n(35),o=n(58);class a extends Error{constructor(e,t,n,o,l,u,c){var f,d,p;super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=s(Array.isArray(t)?t:t?[t]:void 0);const h=s(null===(f=this.nodes)||void 0===f?void 0:f.map(e=>e.loc).filter(e=>null!=e));this.source=null!=n?n:null==h||null===(d=h[0])||void 0===d?void 0:d.source,this.positions=null!=o?o:null==h?void 0:h.map(e=>e.start),this.locations=o&&n?o.map(e=>Object(i.a)(n,e)):null==h?void 0:h.map(e=>Object(i.a)(e.source,e.start));const m=Object(r.a)(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!==(p=null!=c?c:m)&&void 0!==p?p:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,a):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Object(o.a)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+Object(o.b)(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function s(e){return void 0===e||0===e.length?void 0:e}function l(e){return e.toString()}function u(e){return e.toJSON()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){return i(e,[])}function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,o=[];for(let r=0;r<n;++r)o.push(i(e[r],t));1===r?o.push("... 1 more item"):r>1&&o.push(`... ${r} more items`);return"["+o.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";return"{ "+n.map(([e,n])=>e+": "+i(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";let r;n.d(t,"a",(function(){return r})),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return m}));var r=n(3),i=n(15),o=n(1),a=n(9),s=n(2),l=n(0);const u=new l.g({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=g(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new s.a("Int cannot represent non-integer value: "+Object(r.a)(t));if(n>2147483647||n<-2147483648)throw new s.a("Int cannot represent non 32-bit signed integer value: "+Object(r.a)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new s.a("Int cannot represent non-integer value: "+Object(r.a)(e));if(e>2147483647||e<-2147483648)throw new s.a("Int cannot represent non 32-bit signed integer value: "+e);return e},parseLiteral(e){if(e.kind!==o.a.INT)throw new s.a("Int cannot represent non-integer value: "+Object(a.a)(e),e);const t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new s.a("Int cannot represent non 32-bit signed integer value: "+e.value,e);return t}}),c=new l.g({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=g(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new s.a("Float cannot represent non numeric value: "+Object(r.a)(t));return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new s.a("Float cannot represent non numeric value: "+Object(r.a)(e));return e},parseLiteral(e){if(e.kind!==o.a.FLOAT&&e.kind!==o.a.INT)throw new s.a("Float cannot represent non numeric value: "+Object(a.a)(e),e);return parseFloat(e.value)}}),f=new l.g({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=g(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new s.a("String cannot represent value: "+Object(r.a)(e))},parseValue(e){if("string"!=typeof e)throw new s.a("String cannot represent a non string value: "+Object(r.a)(e));return e},parseLiteral(e){if(e.kind!==o.a.STRING)throw new s.a("String cannot represent a non string value: "+Object(a.a)(e),e);return e.value}}),d=new l.g({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=g(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new s.a("Boolean cannot represent a non boolean value: "+Object(r.a)(t))},parseValue(e){if("boolean"!=typeof e)throw new s.a("Boolean cannot represent a non boolean value: "+Object(r.a)(e));return e},parseLiteral(e){if(e.kind!==o.a.BOOLEAN)throw new s.a("Boolean cannot represent a non boolean value: "+Object(a.a)(e),e);return e.value}}),p=new l.g({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=g(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new s.a("ID cannot represent value: "+Object(r.a)(e))},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new s.a("ID cannot represent value: "+Object(r.a)(e))},parseLiteral(e){if(e.kind!==o.a.STRING&&e.kind!==o.a.INT)throw new s.a("ID cannot represent a non-string and non-integer value: "+Object(a.a)(e),e);return e.value}}),h=Object.freeze([f,u,c,d,p]);function m(e){return h.some(({name:t})=>e.name===t)}function g(e){if(Object(i.a)(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!Object(i.a)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"__Schema",(function(){return c})),n.d(t,"__Directive",(function(){return f})),n.d(t,"__DirectiveLocation",(function(){return d})),n.d(t,"__Type",(function(){return p})),n.d(t,"__Field",(function(){return h})),n.d(t,"__InputValue",(function(){return m})),n.d(t,"__EnumValue",(function(){return g})),n.d(t,"TypeKind",(function(){return v})),n.d(t,"__TypeKind",(function(){return y})),n.d(t,"SchemaMetaFieldDef",(function(){return b})),n.d(t,"TypeMetaFieldDef",(function(){return T})),n.d(t,"TypeNameMetaFieldDef",(function(){return E})),n.d(t,"introspectionTypes",(function(){return _})),n.d(t,"isIntrospectionType",(function(){return x}));var r=n(3),i=n(8),o=n(9),a=n(4),s=n(32),l=n(5),u=n(0);const c=new u.f({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:l.e,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new u.e(new u.d(new u.e(p))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new u.e(p),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:p,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:p,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new u.e(new u.d(new u.e(f))),resolve:e=>e.getDirectives()}})}),f=new u.f({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new u.e(l.e),resolve:e=>e.name},description:{type:l.e,resolve:e=>e.description},isRepeatable:{type:new u.e(l.a),resolve:e=>e.isRepeatable},locations:{type:new u.e(new u.d(new u.e(d))),resolve:e=>e.locations},args:{type:new u.e(new u.d(new u.e(m))),args:{includeDeprecated:{type:l.a,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),d=new u.a({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:a.a.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:a.a.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:a.a.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:a.a.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:a.a.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:a.a.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:a.a.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:a.a.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:a.a.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:a.a.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:a.a.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:a.a.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:a.a.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:a.a.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:a.a.UNION,description:"Location adjacent to a union definition."},ENUM:{value:a.a.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:a.a.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:a.a.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:a.a.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),p=new u.f({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new u.e(y),resolve:e=>Object(u.S)(e)?v.SCALAR:Object(u.O)(e)?v.OBJECT:Object(u.I)(e)?v.INTERFACE:Object(u.U)(e)?v.UNION:Object(u.F)(e)?v.ENUM:Object(u.G)(e)?v.INPUT_OBJECT:Object(u.K)(e)?v.LIST:Object(u.M)(e)?v.NON_NULL:void Object(i.a)(!1,`Unexpected type: "${Object(r.a)(e)}".`)},name:{type:l.e,resolve:e=>"name"in e?e.name:void 0},description:{type:l.e,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:l.e,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new u.d(new u.e(h)),args:{includeDeprecated:{type:l.a,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Object(u.O)(e)||Object(u.I)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new u.d(new u.e(p)),resolve(e){if(Object(u.O)(e)||Object(u.I)(e))return e.getInterfaces()}},possibleTypes:{type:new u.d(new u.e(p)),resolve(e,t,n,{schema:r}){if(Object(u.D)(e))return r.getPossibleTypes(e)}},enumValues:{type:new u.d(new u.e(g)),args:{includeDeprecated:{type:l.a,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Object(u.F)(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new u.d(new u.e(m)),args:{includeDeprecated:{type:l.a,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Object(u.G)(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:p,resolve:e=>"ofType"in e?e.ofType:void 0}})}),h=new u.f({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new u.e(l.e),resolve:e=>e.name},description:{type:l.e,resolve:e=>e.description},args:{type:new u.e(new u.d(new u.e(m))),args:{includeDeprecated:{type:l.a,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new u.e(p),resolve:e=>e.type},isDeprecated:{type:new u.e(l.a),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:l.e,resolve:e=>e.deprecationReason}})}),m=new u.f({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new u.e(l.e),resolve:e=>e.name},description:{type:l.e,resolve:e=>e.description},type:{type:new u.e(p),resolve:e=>e.type},defaultValue:{type:l.e,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=Object(s.a)(n,t);return r?Object(o.a)(r):null}},isDeprecated:{type:new u.e(l.a),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:l.e,resolve:e=>e.deprecationReason}})}),g=new u.f({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new u.e(l.e),resolve:e=>e.name},description:{type:l.e,resolve:e=>e.description},isDeprecated:{type:new u.e(l.a),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:l.e,resolve:e=>e.deprecationReason}})});let v;!function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(v||(v={}));const y=new u.a({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:v.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:v.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:v.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:v.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:v.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:v.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:v.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:v.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),b={name:"__schema",type:new u.e(c),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},T={name:"__type",type:p,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new u.e(l.e),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},E={name:"__typename",type:new u.e(l.e),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},_=Object.freeze([c,f,d,p,h,m,g,y]);function x(e){return _.some(({name:t})=>e.name===t)}},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(18),i=n(26);const o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return s[e.charCodeAt(0)]}const s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function l(e){return Object(r.d)(e,u)}const u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=d("(",c(e.variableDefinitions,", "),")"),n=c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+d(" = ",n)+d(" ",c(r," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=d("",e,": ")+t;let a=o+d("(",c(n,", "),")");return a.length>80&&(a=o+d("(\n",p(c(n,"\n")),"\n)")),c([a,c(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+d(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>c(["...",d("on ",e),c(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${d("(",c(n,", "),")")} on ${t} ${d("",c(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Object(i.c)(e):`"${e.replace(o,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+d("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>d("",e,"\n")+c(["schema",c(t," "),f(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>d("",e,"\n")+c(["scalar",t,c(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>d("",e,"\n")+c(["type",t,d("implements ",c(n," & ")),c(r," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>d("",e,"\n")+t+(h(n)?d("(\n",p(c(n,"\n")),"\n)"):d("(",c(n,", "),")"))+": "+r+d(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>d("",e,"\n")+c([t+": "+n,d("= ",r),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>d("",e,"\n")+c(["interface",t,d("implements ",c(n," & ")),c(r," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>d("",e,"\n")+c(["union",t,c(n," "),d("= ",c(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>d("",e,"\n")+c(["enum",t,c(n," "),f(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>d("",e,"\n")+c([t,c(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>d("",e,"\n")+c(["input",t,c(n," "),f(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>d("",e,"\n")+"directive @"+t+(h(n)?d("(\n",p(c(n,"\n")),"\n)"):d("(",c(n,", "),")"))+(r?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>c(["extend type",e,d("implements ",c(t," & ")),c(n," "),f(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>c(["extend interface",e,d("implements ",c(t," & ")),c(n," "),f(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>c(["extend union",e,c(t," "),d("= ",c(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>c(["extend enum",e,c(t," "),f(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>c(["extend input",e,c(t," "),f(n)]," ")}};function c(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function f(e){return d("{\n",p(c(e,"\n")),"\n}")}function d(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function p(e){return d("  ",e.replace(/\n/g,"\n  "))}function h(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=/Android/.test(e),v=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),y=m||/Mac/.test(t),b=/\bCrOS\b/.test(e),T=/win/i.test(t),E=f&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(f=!1,l=!0);var _=y&&(u||f&&(null==E||E<12.11)),x=n||a&&s>=9;function C(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var O,S=function(e,t){var n=e.className,r=C(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function w(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function k(e,t){return w(e).appendChild(t)}function N(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function D(e,t,n,r){var i=N(e,t,n,r);return i.setAttribute("role","presentation"),i}function A(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function I(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function L(e,t){var n=e.className;C(t).test(n)||(e.className+=(n?" ":"")+t)}function R(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(t)&&(t+=" "+n[r]);return t}O=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var F=function(e){e.select()};function M(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function j(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function P(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(F=function(e){try{e.select()}catch(e){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=M(this.onTimeout,this)};function U(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}V.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},V.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var B={toString:function(){return"CodeMirror.Pass"}},$={scroll:!1},H={origin:"*mouse"},q={origin:"+move"};function G(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var K=[""];function z(e){for(;K.length<=e;)K.push(Q(K)+" ");return K[e]}function Q(e){return e[e.length-1]}function W(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Y(){}function J(e,t){var n;return Object.create?n=Object.create(e):(Y.prototype=e,n=new Y),t&&j(t,n),n}var X=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Z(e))||t.test(e):Z(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:t<e.length)&&re(e.charAt(t));)t+=n;return t}function oe(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var le=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var u,c=a.length,f=[],d=0;d<c;++d)f.push((u=a.charCodeAt(d))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":8204==u?"b":"L");for(var p=0,h=l;p<c;++p){var m=f[p];"m"==m?f[p]=h:h=m}for(var g=0,v=l;g<c;++g){var y=f[g];"1"==y&&"r"==v?f[g]="n":n.test(y)&&(v=y,"r"==y&&(f[g]="R"))}for(var b=1,T=f[0];b<c-1;++b){var E=f[b];"+"==E&&"1"==T&&"1"==f[b+1]?f[b]="1":","!=E||T!=f[b+1]||"1"!=T&&"n"!=T||(f[b]=T),T=E}for(var _=0;_<c;++_){var x=f[_];if(","==x)f[_]="N";else if("%"==x){var C=void 0;for(C=_+1;C<c&&"%"==f[C];++C);for(var O=_&&"!"==f[_-1]||C<c&&"1"==f[C]?"1":"N",S=_;S<C;++S)f[S]=O;_=C-1}}for(var w=0,k=l;w<c;++w){var N=f[w];"L"==k&&"1"==N?f[w]="L":n.test(N)&&(k=N)}for(var D=0;D<c;++D)if(t.test(f[D])){var A=void 0;for(A=D+1;A<c&&t.test(f[A]);++A);for(var I="L"==(D?f[D-1]:l),L=I==("L"==(A<c?f[A]:l))?I?"L":"R":l,R=D;R<A;++R)f[R]=L;D=A-1}for(var F,M=[],j=0;j<c;)if(r.test(f[j])){var P=j;for(++j;j<c&&r.test(f[j]);++j);M.push(new o(0,P,j))}else{var V=j,U=M.length,B="rtl"==s?1:0;for(++j;j<c&&"L"!=f[j];++j);for(var $=V;$<j;)if(i.test(f[$])){V<$&&(M.splice(U,0,new o(1,V,$)),U+=B);var H=$;for(++$;$<j&&i.test(f[$]);++$);M.splice(U,0,new o(2,H,$)),U+=B,V=$}else++$;V<j&&M.splice(U,0,new o(1,V,j))}return"ltr"==s&&(1==M[0].level&&(F=a.match(/^\s+/))&&(M[0].from=F[0].length,M.unshift(new o(0,0,F[0].length))),1==Q(M).level&&(F=a.match(/\s+$/))&&(Q(M).to-=F[0].length,M.push(new o(0,c-F[0].length,c)))),"rtl"==s?M.reverse():M}}();function ue(e,t){var n=e.order;return null==n&&(n=e.order=le(e.text,t)),n}var ce=[],fe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ce).concat(n)}};function de(e,t){return e._handlers&&e._handlers[t]||ce}function pe(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=U(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=de(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function me(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),he(e,n||t.type,e,t),Ee(t)||t.codemirrorIgnore}function ge(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==U(n,t[r])&&n.push(t[r])}function ve(e,t){return de(e,t).length>0}function ye(e){e.prototype.on=function(e,t){fe(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function be(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){be(e),Te(e)}function xe(e){return e.target||e.srcElement}function Ce(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),y&&e.ctrlKey&&1==t&&(t=3),t}var Oe,Se,we=function(){if(a&&s<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function ke(e){if(null==Oe){var t=N("span","​");k(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Oe=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Oe?N("span","​"):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ne(e){if(null!=Se)return Se;var t=k(e,document.createTextNode("AخA")),n=O(t,0,1).getBoundingClientRect(),r=O(t,1,2).getBoundingClientRect();return w(e),!(!n||n.left==n.right)&&(Se=r.right-n.right<3)}var De,Ae=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Ie=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Le="oncopy"in(De=N("div"))||(De.setAttribute("oncopy","return;"),"function"==typeof De.oncopy),Re=null,Fe={},Me={};function je(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Fe[e]=t}function Pe(e){if("string"==typeof e&&Me.hasOwnProperty(e))e=Me[e];else if(e&&"string"==typeof e.name&&Me.hasOwnProperty(e.name)){var t=Me[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Pe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Pe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ve(e,t){t=Pe(t);var n=Fe[t.name];if(!n)return Ve(e,"text/plain");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var i=Ue[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function Be(e,t){j(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function $e(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function He(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var Ge=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ke(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function ze(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Qe(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function We(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Ye(e){if(null==e.parent)return null;for(var t=e.parent,n=U(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Je(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function Xe(e,t){return t>=e.first&&t<e.first+e.size}function Ze(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function it(e,t){return tt(e,t)<0?t:e}function ot(e,t){return tt(e,t)<0?e:t}function at(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function st(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,Ke(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,Ke(e,t.line).text.length)}function lt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=st(e,t[r]);return n}Ge.prototype.eol=function(){return this.pos>=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ge.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ge.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ge.prototype.skipToEnd=function(){this.pos=this.string.length},Ge.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ge.prototype.backUp=function(e){this.pos-=e},Ge.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=P(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},Ge.prototype.indentation=function(){return P(this.string,null,this.tabSize)-(this.lineStart?P(this.string,this.lineStart,this.tabSize):0)},Ge.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ge.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ut=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function ft(e,t,n,r){var i=[e.state.modeGen],o={};Tt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Tt(e,t.text,s.mode,n,(function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function dt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=pt(e,Ye(t)),i=t.text.length>e.options.maxHighlightLength&&$e(e.doc.mode,r.state),o=ft(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ct(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Ke(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof ut?u.lookAhead:0)<=o.modeFrontier))return s;var c=P(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Ke(r,o-1).stateAfter,s=a?ct.fromSaved(r,a,o):new ct(r,qe(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ht(e,t,n,r){var i=e.doc.mode,o=new Ge(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&mt(i,n.state);!o.eol();)gt(i,o,n.state),o.start=o.pos}function mt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=He(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function gt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=He(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,n){return t instanceof ut?new ct(e,$e(e.mode,t.state),n,t.lookAhead):new ct(e,$e(e.mode,t),n)},ct.prototype.save=function(e){var t=!1!==e?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ut(t,this.maxLookAhead):t};var vt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function yt(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Ke(a,(t=st(a,t)).line),u=pt(e,t.line,n),c=new Ge(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=gt(s,c,u.state),r&&o.push(new vt(c,i,$e(a.mode,u.state)));return r?o:new vt(c,i,u.state)}function bt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Tt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,f=new Ge(t,e.options.tabSize,r),d=e.options.addModeClass&&[null];for(""==t&&bt(mt(n,r.state),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,f.pos),f.pos=t.length,l=null):l=bt(gt(n,f,r.state,d),o),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u<f.start;)i(u=Math.min(f.start,u+5e3),c);c=l}f.start=f.pos}for(;u<f.pos;){var h=Math.min(f.pos,u+5e3);i(h,c),u=h}}var Et=!1,_t=!1;function xt(e,t,n){this.marker=e,this.from=t,this.to=n}function Ct(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ot(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function St(e,t){if(t.full)return null;var n=Xe(e,t.from.line)&&Ke(e,t.from.line).markedSpans,r=Xe(e,t.to.line)&&Ke(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==tt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new xt(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new xt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=Q(t.text).length+(u?i:0);if(s)for(var f=0;f<s.length;++f){var d=s[f];if(null==d.to){var p=Ct(l,d.marker);p?u&&(d.to=null==p.to?null:p.to+c):d.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Ct(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=wt(s)),l&&l!=s&&(l=wt(l));var g=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new xt(s[b].marker,null,null));for(var T=0;T<y;++T)g.push(v);g.push(l)}return g}function wt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function kt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Nt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Dt(e){return e.inclusiveLeft?-1:0}function At(e){return e.inclusiveRight?1:0}function It(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=tt(r.from,i.from)||Dt(e)-Dt(t);if(o)return-o;var a=tt(r.to,i.to)||At(e)-At(t);return a||t.id-e.id}function Lt(e,t){var n,r=_t&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||It(n,i.marker)<0)&&(n=i.marker);return n}function Rt(e){return Lt(e,!0)}function Ft(e){return Lt(e,!1)}function Mt(e,t){var n,r=_t&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||It(n,o.marker)<0)&&(n=o.marker)}return n}function jt(e,t,n,r,i){var o=Ke(e,t),a=_t&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=tt(u.from,n)||Dt(l.marker)-Dt(i),f=tt(u.to,r)||At(l.marker)-At(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.to,n)>=0:tt(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?tt(u.from,r)<=0:tt(u.from,r)<0)))return!0}}}function Pt(e){for(var t;t=Rt(e);)e=t.find(-1,!0).line;return e}function Vt(e,t){var n=Ke(e,t),r=Pt(n);return n==r?t:Ye(r)}function Ut(e,t){if(t>e.lastLine())return t;var n,r=Ke(e,t);if(!Bt(e,r))return t;for(;n=Ft(r);)r=n.find(1,!0).line;return Ye(r)+1}function Bt(e,t){var n=_t&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&$t(e,t,r))return!0}}function $t(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return $t(e,r.line,Ct(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&$t(e,t,i))return!0}function Ht(e){for(var t=0,n=(e=Pt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function qt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Rt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Ft(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Gt(e){var t=e.display,n=e.doc;t.maxLine=Ke(n,n.first),t.maxLineLength=qt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=qt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Kt=function(e,t,n){this.text=e,Nt(this,t),this.height=n?n(this):1};function zt(e){e.parent=null,kt(e)}Kt.prototype.lineNo=function(){return Ye(this)},ye(Kt);var Qt={},Wt={};function Yt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Wt:Qt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,t){var n=D("span",null,null,l?"padding-right: .1px":null),r={pre:D("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Zt,Ne(e.display.measure)&&(a=ue(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,dt(e,o,t!=e.display.externalMeasured&&Ye(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=R(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=R(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(ke(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function Xt(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,f=e.cm.state.specialChars,d=!1;if(f.test(t)){u=document.createDocumentFragment();for(var p=0;;){f.lastIndex=p;var h=f.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));a&&s<9?u.appendChild(N("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(N("span",z(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(N("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(N("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||d||o||l){var T=n||"";r&&(T+=r),i&&(T+=i);var E=N("span",[u],T,o);if(l)for(var _ in l)l.hasOwnProperty(_)&&"style"!=_&&"class"!=_&&E.setAttribute(_,l[_]);return e.content.appendChild(E)}e.content.appendChild(u)}}function en(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var f=void 0,d=0;d<t.length&&!((f=t[d]).to>u&&f.from<=u);d++);if(f.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,f.to-u),i,o,null,s,l),o=null,r=r.slice(f.to-u),u=f.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,d,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",d=null,f=null,v=1/0;for(var y=[],b=void 0,T=0;T<r.length;++T){var E=r[T],_=E.marker;if("bookmark"==_.type&&E.from==h&&_.widgetNode)y.push(_);else if(E.from<=h&&(null==E.to||E.to>h||_.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&v>E.to&&(v=E.to,u=""),_.className&&(l+=" "+_.className),_.css&&(s=(s?s+";":"")+_.css),_.startStyle&&E.from==h&&(c+=" "+_.startStyle),_.endStyle&&E.to==v&&(b||(b=[])).push(_.endStyle,E.to),_.title&&((d||(d={})).title=_.title),_.attributes)for(var x in _.attributes)(d||(d={}))[x]=_.attributes[x];_.collapsed&&(!f||It(f.marker,_)<0)&&(f=E)}else E.from>h&&v>E.from&&(v=E.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(u+=" "+b[C]);if(!f||f.from==h)for(var O=0;O<y.length;++O)tn(t,0,y[O]);if(f&&(f.from||0)==h){if(tn(t,(null==f.to?p+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=p)break;for(var S=Math.min(p,v);;){if(g){var w=h+g.length;if(!f){var k=w>S?g.slice(0,S-h):g;t.addToken(t,k,a?a+l:l,c,h+k.length==v?u:"",s,d)}if(w>=S){g=g.slice(S-h),h=S;break}h=w,c=""}g=i.slice(o,o=n[m++]),a=Yt(n[m++],t.cm.options)}}else for(var N=1;N<n.length;N+=2)t.addToken(t,i.slice(o,o=n[N]),Yt(n[N+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Ft(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Ye(Q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Bt(e,t)}function on(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new rn(e.doc,Ke(e.doc,o),o);r=o+a.size,i.push(a)}return i}var an=null,sn=null;function ln(e,t){var n=de(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:sn?r=sn:(r=sn=[],setTimeout(un,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function un(){var e=sn;sn=null;for(var t=0;t<e.length;++t)e[t]()}function cn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?pn(e,t):"gutter"==o?mn(e,t,n,r):"class"==o?hn(e,t):"widget"==o&&gn(e,t,r)}t.changes=null}function fn(e){return e.node==e.text&&(e.node=N("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function dn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Jt(e,t)}function pn(e,t){var n=t.text.className,r=dn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=fn(t);t.background=r.insertBefore(N("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?fn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=fn(t);t.gutterBackground=N("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=fn(t),s=t.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(N("div",Ze(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(N("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function gn(e,t,n){t.alignable&&(t.alignable=null);for(var r=C("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);yn(e,t,n)}function vn(e,t,n,r){var i=dn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),hn(e,t),mn(e,t,n,r),yn(e,t,r),t.node}function yn(e,t,n){if(bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)bn(e,t.rest[r],t,n,!1)}function bn(e,t,n,r,i){if(t.widgets)for(var o=fn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=N("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Tn(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),ln(l,"redraw")}}function Tn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function En(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!A(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),k(t.display.measure,N("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function _n(e,t){for(var n=xe(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function xn(e){return e.lineSpace.offsetTop}function Cn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function On(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=k(e.measure,N("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Sn(e){return 50-e.display.nativeBarWidth}function wn(e){return e.display.scroller.clientWidth-Sn(e)-e.display.barWidth}function kn(e){return e.display.scroller.clientHeight-Sn(e)-e.display.barHeight}function Nn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Ye(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Dn(e,t,n,r){return Ln(e,In(e,t),n,r)}function An(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[cr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function In(e,t){var n=Ye(t),r=An(e,n);r&&!r.text?r=null:r&&r.changes&&(cn(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Ye(t=Pt(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var i=r.built=Jt(e,r);return r.text=i.pre,k(e.display.lineMeasure,i.pre),r}(e,t));var i=Nn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Ln(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&wn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Mn(t.map,n,r),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&re(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&re(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():jn(O(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,f="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Re)return Re;var t=k(e,N("span","x")),n=t.getBoundingClientRect(),r=O(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(f=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Fn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var T=b?y[b-1]:0,E=y[b],_={left:("right"==f?i.right:i.left)-t.rect.left,right:("left"==f?i.left:i.right)-t.rect.left,top:T,bottom:E};return i.left||i.right||(_.bogus=!0),e.options.singleCursorHeightPerLine||(_.rtop=m,_.rbottom=g),_}(e,t,n,r)).bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Rn,Fn={left:0,right:0,top:0,bottom:0};function Mn(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function jn(e,t){var n=Fn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Pn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Vn(e){e.display.externalMeasure=null,w(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Pn(e.display.view[t])}function Un(e){Vn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Bn(){return c&&g?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function $n(){return c&&g?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Hn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=En(e.widgets[n]));return t}function qn(e,t,n,r,i){if(!i){var o=Hn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Ht(t);if("local"==r?a+=xn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:$n());var l=s.left+("window"==r?0:Bn());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Gn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Bn(),i-=$n();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Kn(e,t,n,r,i){return r||(r=Ke(e.doc,t.line)),qn(e,r,Dn(e,r,t.ch,i),n)}function zn(e,t,n,r,i,o){function a(t,a){var s=Ln(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,qn(e,r,s,n)}r=r||Ke(e.doc,t.line),i||(i=In(e,r));var s=ue(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var f=se(s,l,u),d=ae,p=c(l,f,"before"==u);return null!=d&&(p.other=c(l,d,"before"!=u)),p}function Qn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=Ke(e.doc,t.line),i=Ht(r)+xn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Wn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Yn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Wn(r.first,0,null,-1,-1);var i=Je(r,n),o=r.first+r.size-1;if(i>o)return Wn(r.first+r.size-1,Ke(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ke(r,i);;){var s=er(e,a,i,t,n),l=Mt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Ke(r,i=u.line)}}function Jn(e,t,n,r){r-=Hn(t);var i=t.text.length,o=oe((function(t){return Ln(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return Ln(e,n,t).top>r}),o,i)}}function Xn(e,t,n,r){return n||(n=In(e,t)),Jn(e,t,n,qn(e,t,Ln(e,n,r),"line").top)}function Zn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Ht(t);var o=In(e,t),a=Hn(t),s=0,l=t.text.length,u=!0,c=ue(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?nr:tr)(e,t,n,o,c,r,i);s=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var d,p,h=null,m=null,g=oe((function(t){var n=Ln(e,o,t);return n.top+=a,n.bottom+=a,!!Zn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=h+(b?0:1),p=b?"after":"before",d=y?m.left:m.right}else{u||g!=l&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":Ln(e,o,g-(u?1:0)).bottom+a<=i==u?"after":"before";var T=zn(e,et(n,g,p),"line",t,o);d=T.left,v=i<T.top?-1:i>=T.bottom?1:0}return Wn(n,g=ie(t.text,g,1),p,v,r-d)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var l=i[s],u=1!=l.level;return Zn(zn(e,et(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=zn(e,et(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Zn(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function nr(e,t,n,r,i,o,a){var s=Jn(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,d=0;d<i.length;d++){var p=i[d];if(!(p.from>=u||p.to<=l)){var h=Ln(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||f>m)&&(c=p,f=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(N("br"));Rn.appendChild(document.createTextNode("x"))}k(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),w(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");k(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Bt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function lr(e){var t=e.doc,n=sr(e);t.iter((function(e){var t=n(e);t!=e.height&&We(e,t)}))}function ur(e,t,n,r){var i=e.display;if(!n&&"true"==xe(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,u=Yn(e,o,a);if(r&&u.xRel>0&&(l=Ke(e.doc,u.line).text).length==u.ch){var c=P(l,l.length,e.options.tabSize)-l.length;u=et(u.line,Math.max(0,Math.round((o-On(e.display).left)/ir(e.display))-c))}return u}function cr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function fr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)_t&&Vt(e.doc,t)<i.viewTo&&pr(e);else if(n<=i.viewFrom)_t&&Ut(e.doc,n+r)>i.viewFrom?pr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)pr(e);else if(t<=i.viewFrom){var o=hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):pr(e)}else if(n>=i.viewTo){var a=hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):pr(e)}else{var s=hr(e,t,t,-1),l=hr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):pr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function dr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[cr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function pr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var i,o=cr(e,t),a=e.display.view;if(!_t||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Vt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function gr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function vr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&yr(e,s.head,i),l||Tr(e,s,o)}}return r}function yr(e,t,n){var r=zn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(N("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function br(e,t){return e.top-t.top||e.left-t.left}function Tr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=On(e.display),s=a.left,l=Math.max(r.sizerWidth,wn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n                             height: "+(r-t)+"px"))}function f(t,n,r){var o,a,f=Ke(i,t),d=f.text.length;function p(n,r){return Kn(e,et(t,n),"div",f,r)}function h(t,n,r){var i=Xn(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var m=ue(f,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?d:r,(function(e,t,i,f){var g="ltr"==i,v=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,T=null==r&&t==d,E=0==f,_=!m||f==m.length-1;if(y.top-v.top<=3){var x=(u?T:b)&&_,C=(u?b:T)&&E?s:(g?v:y).left,O=x?l:(g?y:v).right;c(C,v.top,O-C,v.bottom)}else{var S,w,k,N;g?(S=u&&b&&E?s:v.left,w=u?l:h(e,i,"before"),k=u?s:h(t,i,"after"),N=u&&T&&_?l:y.right):(S=u?h(e,i,"before"):s,w=!u&&b&&E?l:v.right,k=!u&&T&&_?s:y.left,N=u?h(t,i,"after"):l),c(S,v.top,w-S,v.bottom),v.bottom<y.top&&c(s,v.bottom,null,y.top),c(k,y.top,N-k,y.bottom)}(!o||br(v,o)<0)&&(o=v),br(y,o)<0&&(o=y),(!a||br(v,a)<0)&&(a=v),br(y,a)<0&&(a=y)})),{start:o,end:a}}var d=t.from(),p=t.to();if(d.line==p.line)f(d.line,d.ch,p.ch);else{var h=Ke(i,d.line),m=Ke(i,p.line),g=Pt(h)==Pt(m),v=f(d.line,d.ch,g?h.text.length+1:null).end,y=f(p.line,g?0:null,p.ch).start;g&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(s,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(s,v.bottom,null,y.top)}n.appendChild(o)}function Er(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Or(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function _r(e){e.state.focused||(e.display.input.focus(),Cr(e))}function xr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Or(e))}),100)}function Cr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,L(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Er(e))}function Or(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Sr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,l=void 0,u=0;if(!i.hidden){if(a&&s<8){var c=i.node.offsetTop+i.node.offsetHeight;l=c-n,n=c}else{var f=i.node.getBoundingClientRect();l=f.bottom-f.top,!o&&i.text.firstChild&&(u=i.text.firstChild.getBoundingClientRect().right-f.left-1)}var d=i.line.height-l;if((d>.005||d<-.005)&&(We(i.line,l),wr(i.line),i.rest))for(var p=0;p<i.rest.length;p++)wr(i.rest[p]);if(u>e.display.sizerWidth){var h=Math.ceil(u/ir(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function wr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function kr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-xn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Je(t,r),a=Je(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=Je(t,Ht(Ke(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=Je(t,Ht(Ke(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Nr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=kn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Cn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var f=e.options.fixedGutter?0:n.gutters.offsetWidth,d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-f,p=wn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left+f-(h?0:10)):t.right>p+d-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Dr(e,t){null!=t&&(Lr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ar(e){Lr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ir(e,t,n){null==t&&null==n||Lr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Lr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Rr(e,Qn(e,t.from),Qn(e,t.to),t.margin))}function Rr(e,t,n,r){var i=Nr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Ir(e,i.scrollLeft,i.scrollTop)}function Fr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||li(e,{top:t}),Mr(e,t,!0),n&&li(e),ri(e,100))}function Mr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function jr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Pr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Cn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Vr=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),fe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),fe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Vr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Vr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Vr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Vr.prototype.zeroWidthHack=function(){var e=y&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Vr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Vr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ur=function(){};function Br(e,t){t||(t=Pr(e));var n=e.display.barWidth,r=e.display.barHeight;$r(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Sr(e),$r(e,Pr(e)),n=e.display.barWidth,r=e.display.barHeight}function $r(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var Hr={native:Vr,null:Ur};function qr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Hr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),fe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?jr(e,t):Fr(e,t)}),e),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)}var Gr=0;function Kr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Gr},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function zr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{an=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Qr(t[n]);for(var r=0;r<t.length;r++)Wr(t[r]);for(var i=0;i<t.length;i++)Yr(t[i]);for(var o=0;o<t.length;o++)Jr(t[o]);for(var a=0;a<t.length;a++)Xr(t[a])}(e)}))}function Qr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Sn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Sn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Gt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Wr(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Yr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Sr(t),e.barMeasure=Pr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Dn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-wn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Jr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&jr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==I();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Br(t,e.barMeasure),e.updatedDisplay&&ci(t,e.barMeasure),e.selectionChanged&&Er(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&_r(e.cm)}function Xr(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&si(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Mr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&jr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=N("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-xn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Sn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=zn(e,t),l=n&&n!=t?zn(e,n):s,u=Nr(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(Fr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(jr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||he(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&he(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&he(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Zr(e,t){if(e.curOp)return t();Kr(e);try{return t()}finally{zr(e)}}function ei(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Kr(e);try{return t.apply(e,arguments)}finally{zr(e)}}}function ti(e){return function(){if(this.curOp)return e.apply(this,arguments);Kr(this);try{return e.apply(this,arguments)}finally{zr(this)}}}function ni(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Kr(t);try{return e.apply(this,arguments)}finally{zr(t)}}}function ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,M(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=pt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?$e(t.mode,r.state):null,l=ft(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&d<a.length;++d)f=a[d]!=o.styles[d];f&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ht(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Zr(e,(function(){for(var t=0;t<i.length;t++)dr(e,i[t],"text")}))}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=kr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=wn(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return pr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;di(e)&&(pr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),_t&&(o=Vt(e.doc,o),a=Ut(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(cr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(on(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,cr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Ht(Ke(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=mr(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=I();if(!t||!A(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&A(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&y&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f<u.length;f++){var d=u[f];if(d.hidden);else if(d.node&&d.node.parentNode==o){for(;a!=d.node;)a=s(a);var p=i&&null!=t&&t<=c&&d.lineNumber;d.changes&&(U(d.changes,"gutter")>-1&&(p=!1),cn(e,d,c,n)),p&&(w(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(Ze(e.options,c)))),a=d.node.nextSibling}else{var h=vn(e,d,c,n);o.insertBefore(h,a)}c+=d.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=I()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&A(document.body,e.anchorNode)&&A(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),w(n.cursorDiv),w(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=wn(e))r&&(t.visible=kr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Cn(e.display)-kn(e),n.top)}),t.visible=kr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;Sr(e);var i=Pr(e);gr(e),Br(e,i),ci(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function li(e,t){var n=new oi(e,t);if(ai(e,n)){Sr(e),si(e,n);var r=Pr(e);gr(e),Br(e,r),ci(e,r),n.finish()}}function ui(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ci(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Sn(e)+"px"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function di(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=Ze(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(N("div",[N("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ui(e.display),!0}return!1}function pi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function hi(e){var t=e.gutters,n=e.gutterSpecs;w(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(N("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ui(e)}function mi(e){hi(e.display),fr(e),fi(e)}function gi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=N("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=N("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=D("div",null,"CodeMirror-code"),o.selectionDiv=N("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=N("div",null,"CodeMirror-cursors"),o.measure=N("div",null,"CodeMirror-measure"),o.lineMeasure=N("div",null,"CodeMirror-measure"),o.lineSpace=D("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=D("div",[o.lineSpace],"CodeMirror-lines");o.mover=N("div",[u],null,"position: relative"),o.sizer=N("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=N("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=N("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=N("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=N("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=pi(i.gutters,i.lineNumbers),hi(o),r.init(o)}oi.prototype.signal=function(e,t){ve(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)he.apply(null,this.events[e])};var vi=0,yi=null;function bi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Ti(e){var t=bi(e);return t.x*=yi,t.y*=yi,t}function Ei(e,t){var r=bi(t),i=r.x,o=r.y,a=e.display,s=a.scroller,u=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&u||o&&c){if(o&&y&&l)e:for(var d=t.target,p=a.view;d!=s;d=d.parentNode)for(var h=0;h<p.length;h++)if(p[h].node==d){e.display.currentWheelTarget=d;break e}if(i&&!n&&!f&&null!=yi)return o&&c&&Fr(e,Math.max(0,s.scrollTop+o*yi)),jr(e,Math.max(0,s.scrollLeft+i*yi)),(!o||o&&c)&&be(t),void(a.wheelStartX=null);if(o&&null!=yi){var m=o*yi,g=e.doc.scrollTop,v=g+a.wrapper.clientHeight;m<0?g=Math.max(0,g+m-50):v=Math.min(e.doc.height,v+m+50),li(e,{top:g,bottom:v})}vi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(yi=(yi*vi+n)/(vi+1),++vi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?yi=-.53:n?yi=15:c?yi=-.7:d&&(yi=-1/3);var _i=function(e,t){this.ranges=e,this.primIndex=t};_i.prototype.primary=function(){return this.ranges[this.primIndex]},_i.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},_i.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new xi(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new _i(e,this.primIndex)},_i.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},_i.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var xi=function(e,t){this.anchor=e,this.head=t};function Ci(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=U(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=tt(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ot(s.from(),a.from()),c=it(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new xi(f?c:u,f?u:c))}}return new _i(t,n)}function Oi(e,t){return new _i([new xi(e,t||e)],0)}function Si(e){return e.text?et(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function wi(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Si(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Si(t).ch-t.to.ch),et(n,r)}function ki(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new xi(wi(i.anchor,t),wi(i.head,t)))}return Ci(e.cm,n,e.sel.primIndex)}function Ni(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function Di(e){e.doc.mode=Ve(e.options,e.doc.modeOption),Ai(e)}function Ai(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&fr(e)}function Ii(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Q(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Li(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),kt(e),Nt(e,n);var i=r?r(e):1;i!=e.height&&We(e,i)}(e,n,i,r),ln(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Kt(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=Ke(e,s.line),f=Ke(e,l.line),d=Q(u),p=i(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Ii(e,t)){var m=a(0,u.length-1);o(f,f.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,s.ch)+d+c.text.slice(l.ch),p);else{var g=a(1,u.length-1);g.push(new Kt(d+c.text.slice(l.ch),p,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(f,d+f.text.slice(l.ch),p);var v=a(1,u.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}ln(e,"change",e,t)}function Ri(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Fi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,lr(e),Di(e),Mi(e),e.options.lineWrapping||Gt(e),e.options.mode=t.modeOption,fr(e)}function Mi(e){("rtl"==e.doc.direction?L:S)(e.display.lineDiv,"CodeMirror-rtl")}function ji(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Pi(e,t){var n={from:rt(t.from),to:Si(t),text:ze(e,t.from,t.to)};return Hi(e,n,t.from.line,t.to.line+1),Ri(e,(function(e){return Hi(e,n,t.from.line,t.to.line+1)}),!0),n}function Vi(e){for(;e.length&&Q(e).ranges;)e.pop()}function Ui(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Vi(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}(i,i.lastOp==r)))a=Q(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Si(t):o.changes.push(Pi(e,t));else{var l=Q(i.done);for(l&&l.ranges||$i(e.sel,i.done),o={changes:[Pi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function Bi(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Q(i.done),t))?i.done[i.done.length-1]=t:$i(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Vi(i.undone)}function $i(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Hi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function qi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Gi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(qi(n[i]));return r}(e,t),r=St(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Ki(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?_i.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&U(t,Number(c[1]))>-1&&(Q(s)[f]=u[f],delete u[f])}}}return r}function zi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new xi(i,t)}return new xi(n||t,t)}function Qi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Zi(e,new _i([zi(e.sel.primary(),t,n,i)],0),r)}function Wi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=zi(e.sel.ranges[o],t[o],null,i);Zi(e,Ci(e.cm,r,e.sel.primIndex),n)}function Yi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Zi(e,Ci(e.cm,i,e.sel.primIndex),r)}function Ji(e,t,n,r){Zi(e,Oi(t,n),r)}function Xi(e,t,n){var r=e.history.done,i=Q(r);i&&i.ranges?(r[r.length-1]=t,eo(e,t,n)):Zi(e,t,n)}function Zi(e,t,n){eo(e,t,n),Bi(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function eo(e,t,n){(ve(e,"beforeSelectionChange")||e.cm&&ve(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new xi(st(e,t[n].anchor),st(e,t[n].head))},origin:n&&n.origin};return he(e,"beforeSelectionChange",e,r),e.cm&&he(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ci(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);to(e,ro(e,t,r,!0)),n&&!1===n.scroll||!e.cm||Ar(e.cm)}function to(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ge(e.cm)),ln(e,"cursorActivity",e))}function no(e){to(e,ro(e,e.sel,null,!1))}function ro(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=oo(e,a.anchor,s&&s.anchor,n,r),u=oo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new xi(l,u))}return i?Ci(e.cm,i,t.primIndex):t}function io(e,t,n,r,i){var o=Ke(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(he(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var f=l.find(r<0?1:-1),d=void 0;if((r<0?c:u)&&(f=ao(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(d=tt(f,n))&&(r<0?d<0:d>0))return io(e,f,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=ao(e,p,r,p.line==t.line?o:null)),p?io(e,p,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,et(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||Ke(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function so(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),$)}function lo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=st(e,t)),n&&(r.to=st(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),he(e,"beforeChange",e,r),e.cm&&he(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function uo(e,t,n){if(e.cm){if(!e.cm.curOp)return ei(e.cm,uo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ve(e,"beforeChange")||e.cm&&ve(e.cm,"beforeChange"))||(t=lo(e,t,!0))){var r=Et&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(tt(u.to,s.from)<0||tt(u.from,s.to)>0)){var c=[l,1],f=tt(u.from,s.from),d=tt(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)co(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else co(e,t)}}function co(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=ki(e,t);Ui(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,St(e,t));var r=[];Ri(e,(function(e,n){n||-1!=U(r,e.history)||(yo(e.history,t),r.push(e.history)),ho(e,t,null,St(e,t))}))}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if($i(i,l),n&&!i.equals(e.sel))return void Zi(e,i,{clearRedo:!1});a=i}var c=[];$i(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=ve(e,"beforeChange")||e.cm&&ve(e.cm,"beforeChange"),d=function(n){var r=i.changes[n];if(r.origin=t,f&&!lo(e,r,!1))return s.length=0,{};c.push(Pi(e,r));var o=n?ki(e,r):Q(s);ho(e,r,o,Gi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Si(r)});var a=[];Ri(e,(function(e,t){t||-1!=U(a,e.history)||(yo(e.history,r),a.push(e.history)),ho(e,r,null,Gi(e,r))}))},p=i.changes.length-1;p>=0;--p){var h=d(p);if(h)return h.v}}}}function po(e,t){if(0!=t&&(e.first+=t,e.sel=new _i(W(e.sel.ranges,(function(e){return new xi(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)dr(e.cm,r,"gutter")}}function ho(e,t,n,r){if(e.cm&&!e.cm.curOp)return ei(e.cm,ho)(e,t,n,r);if(t.to.line<e.first)po(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);po(e,i),t={from:et(e.first,0),to:et(t.to.line+i,t.to.ch),text:[Q(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:et(o,Ke(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ze(e,t.from,t.to),n||(n=ki(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Ye(Pt(Ke(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ge(e),Li(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=qt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Ke(e,r).stateAfter;if(i&&(!(i instanceof ut)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ri(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?fr(e):o.line!=a.line||1!=t.text.length||Ii(e.doc,t)?fr(e,o.line,a.line+1,u):dr(e,o.line,"text");var c=ve(e,"changes"),f=ve(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&ln(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}(e.cm,t,r):Li(e,t,r),eo(e,n,$),e.cantEdit&&oo(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,n,r,i){var o;r||(r=n),tt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),uo(e,{from:n,to:r,text:t,origin:i})}function go(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function vo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)go(o.ranges[s].anchor,t,n,r),go(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=et(u.from.line+r,u.from.ch),u.to=et(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function yo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;vo(e.done,n,r,i),vo(e.undone,n,r,i)}function bo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Ke(e,at(e,t)):i=Ye(t),null==i?null:(r(o,i)&&e.cm&&dr(e.cm,i,n),o)}function To(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Eo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}xi.prototype.from=function(){return ot(this.anchor,this.head)},xi.prototype.to=function(){return it(this.anchor,this.head)},xi.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},To.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,zt(i),ln(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Eo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof To))){var s=[];this.collapse(s),this.children=[new To(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new To(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Eo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=U(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Eo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var _o=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function xo(e,t,n){Ht(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Dr(e,n)}_o.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Ye(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=En(this);We(n,Math.max(0,n.height-o)),e&&(Zr(e,(function(){xo(e,n,-o),dr(e,r,"widget")})),ln(e,"lineWidgetCleared",e,this,r))}},_o.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=En(this)-t;i&&(Bt(this.doc,r)||We(r,r.height+i),n&&Zr(n,(function(){n.curOp.forceUpdate=!0,xo(n,r,i),ln(n,"lineWidgetChanged",n,e,Ye(r))})))},ye(_o);var Co=0,Oo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Co};function So(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=j(r)).shared=!1;var o=[So(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Ri(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(So(e,st(e,t),st(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Q(o)})),new wo(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ei(e.cm,So)(e,t,n,r,i);var o=new Oo(e,i),a=tt(t,n);if(r&&j(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=D("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(jt(e,t.line,t,n,o)||t.line!=n.line&&jt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");_t=!0}o.addToHistory&&Ui(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(e){u&&o.collapsed&&!u.options.lineWrapping&&Pt(e)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&We(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new xt(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Bt(e,t)&&We(t,0)})),o.clearOnEnter&&fe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Et=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Co,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)fr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)dr(u,c,"text");o.atomic&&no(u.doc),ln(u,"markerAdded",u,o)}return o}Oo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Kr(e),ve(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Ct(a.markedSpans,this);e&&!this.collapsed?dr(e,Ye(a),"text"):e&&(null!=s.to&&(i=Ye(a)),null!=s.from&&(r=Ye(a))),a.markedSpans=Ot(a.markedSpans,s),null==s.from&&this.collapsed&&!Bt(this.doc,a)&&e&&We(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=Pt(this.lines[l]),c=qt(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&ln(e,"markerCleared",e,this,r,i),t&&zr(e),this.parent&&this.parent.clear()}},Oo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Ct(o.markedSpans,this);if(null!=a.from&&(n=et(t?o:Ye(o),a.from),-1==e))return n;if(null!=a.to&&(r=et(t?o:Ye(o),a.to),1==e))return r}return n&&{from:n,to:r}},Oo.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Zr(r,(function(){var i=t.line,o=Ye(t.line),a=An(r,o);if(a&&(Pn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Bt(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=En(n)-s;l&&We(i,i.height+l)}ln(r,"markerChanged",r,e)}))},Oo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=U(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Oo.prototype.detachLine=function(e){if(this.lines.splice(U(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ye(Oo);var wo=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function ko(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function No(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Ri(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==U(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}wo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ln(this,"clear")}},wo.prototype.find=function(e,t){return this.primary.find(e,t)},ye(wo);var Do=0,Ao=function(e,t,n,r,i){if(!(this instanceof Ao))return new Ao(e,t,n,r,i);null==n&&(n=0),Eo.call(this,[new To([new Kt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=et(n,0);this.sel=Oi(o),this.history=new ji(null),this.id=++Do,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Li(this,{from:o,to:o,text:e}),Zi(this,Oi(o),$)};Ao.prototype=J(Eo.prototype,{constructor:Ao,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Qe(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ni((function(e){var t=et(this.first,0),n=this.first+this.size-1;uo(this,{from:t,to:et(n,Ke(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ir(this.cm,0,0),Zi(this,Oi(t),$)})),replaceRange:function(e,t,n,r){mo(this,e,t=st(this,t),n=n?st(this,n):t,r)},getRange:function(e,t,n){var r=ze(this,st(this,e),st(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Xe(this,e))return Ke(this,e)},getLineNumber:function(e){return Ye(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ke(this,e)),Pt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni((function(e,t,n){Ji(this,st(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:ni((function(e,t,n){Ji(this,st(this,e),st(this,t||e),n)})),extendSelection:ni((function(e,t,n){Qi(this,st(this,e),t&&st(this,t),n)})),extendSelections:ni((function(e,t){Wi(this,lt(this,e),t)})),extendSelectionsBy:ni((function(e,t){Wi(this,lt(this,W(this.sel.ranges,e)),t)})),setSelections:ni((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new xi(st(this,e[i].anchor),st(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Zi(this,Ci(this.cm,r,t),n)}})),addSelection:ni((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new xi(st(this,e),st(this,t||e))),Zi(this,Ci(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=ze(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=ze(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ni((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=et(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ni(s.from,i,o),u=Ni(Si(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],f=tt(c.head,c.anchor)<0;r[a]=new xi(f?u:l,f?l:u)}else r[a]=new xi(l,l)}return new _i(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)uo(this,r[l]);s?Xi(this,s):this.cm&&Ar(this.cm)})),undo:ni((function(){fo(this,"undo")})),redo:ni((function(){fo(this,"redo")})),undoSelection:ni((function(){fo(this,"undo",!0)})),redoSelection:ni((function(){fo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new ji(this.history.maxGeneration),Ri(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ki(this.history.done),undone:Ki(this.history.undone)}},setHistory:function(e){var t=this.history=new ji(this.history.maxGeneration);t.done=Ki(e.done.slice(0),null,!0),t.undone=Ki(e.undone.slice(0),null,!0)},setGutterMarker:ni((function(e,t,n){return bo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ni((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&bo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!Xe(this,e))return null;if(t=e,!(e=Ke(this,e)))return null}else if(null==(t=Ye(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(C(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ni((function(e,t,n){return bo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(C(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ni((function(e,t,n){return function(e,t,n,r){var i=new _o(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),bo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Bt(e,t)){var r=Ht(t)<e.scrollTop;We(t,t.height+En(i)),r&&Dr(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&ln(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Ye(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return So(this,st(this,e),st(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return So(this,e=st(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ke(this,(e=st(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ao(Qe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ao(Qe(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(tt(o,a)){var s=So(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,ko(this)),r},unlinkDoc:function(e){if(e instanceof wa&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),No(ko(this));break}if(e.history==this.history){var n=[e.id];Ri(e,(function(e){return n.push(e.id)}),!0),e.history=new ji(null),e.history.done=Ki(this.history.done,n),e.history.undone=Ki(this.history.undone,n)}},iterLinkedDocs:function(e){Ri(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ae(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Zr(t=this.cm,(function(){Mi(t),fr(t)})))}))}),Ao.prototype.eachLine=Ao.prototype.iter;var Io=0;function Lo(e){var t=this;if(Ro(t),!me(t,e)&&!_n(t.display,e)){be(e),a&&(Io=+new Date);var n=ur(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ei(t,(function(){var e={from:n=st(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};uo(t.doc,e),Xi(t.doc,Oi(st(t.doc,n),st(t.doc,Si(e))))}))()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==U(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var d;if(t.state.draggingText&&!t.state.draggingText.copy&&(d=t.listSelections()),eo(t.doc,Oi(n,n)),d)for(var p=0;p<d.length;++p)mo(t.doc,"",d[p].anchor,d[p].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ro(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Fo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Mo=!1;function jo(){var e;Mo||(fe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Fo(Po)}),100))})),fe(window,"blur",(function(){return Fo(Or)})),Mo=!0)}function Po(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Vo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Uo=0;Uo<10;Uo++)Vo[Uo+48]=Vo[Uo+96]=String(Uo);for(var Bo=65;Bo<=90;Bo++)Vo[Bo]=String.fromCharCode(Bo);for(var $o=1;$o<=12;$o++)Vo[$o+111]=Vo[$o+63235]="F"+$o;var Ho={};function qo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Go(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=W(n.split(" "),qo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Ko(e,t,n,r){var i=(t=Yo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ko(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ko(e,t.fallthrough[o],n,r);if(a)return a}}}function zo(e){var t="string"==typeof e?e:Vo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Qo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(_?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(_?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Wo(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=Vo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Qo(n,e,t))}function Yo(e){return"string"==typeof e?Ho[e]:e}function Jo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&tt(o.from,Q(r).to)<=0;){var a=r.pop();if(tt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Zr(e,(function(){for(var t=r.length-1;t>=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Ar(e)}))}function Xo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Zo(e,t,n){var r=Xo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ue(n,t.doc.direction);if(o){var a,s=i<0?Q(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=In(t,n);a=i<0?n.text.length-1:0;var c=Ln(t,u,a).top;a=oe((function(e){return Ln(t,u,e).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Xo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,l)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Ho.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ho.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ho.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ho.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ho.default=y?Ho.macDefault:Ho.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return Jo(e,(function(t){if(t.empty()){var n=Ke(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Jo(e,(function(t){return{from:et(t.from().line,0),to:st(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return Jo(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Jo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Jo(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return na(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ra(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Ke(e.doc,t),r=function(e){for(var t;t=Ft(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Ye(r)),ea(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),q)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),q)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ra(e,t.head):r}),q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=P(e.getLine(o.line),o.ch,r);t.push(z(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Ke(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new et(i.line,i.ch-1)),i.ch>0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ke(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new xi(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Ar(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function na(e,t){var n=Ke(e.doc,t),r=Pt(n);return r!=n&&(t=Ye(r)),ea(!0,e,r,t,1)}function ra(e,t){var n=na(e,t.line),r=Ke(e.doc,n.line),i=ue(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return et(n.line,a?0:o,n.sticky)}return n}function ia(e,t,n){if("string"==typeof t&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=B}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var oa=new V;function aa(e,t,n,r){var i=e.state.keySeq;if(i){if(zo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:oa.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),sa(e,i+" "+t,n,r))return!0}return sa(e,t,n,r)}function sa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ko(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ko(t,e.options.extraKeys,n,e)||Ko(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&ln(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(be(n),Er(e)),!!i}function la(e,t){var n=Wo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?aa(e,"Shift-"+n,t,(function(t){return ia(e,t,!0)}))||aa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ia(e,t)})):aa(e,n,t,(function(t){return ia(e,t)})))}var ua=null;function ca(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=I(),me(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=la(t,e);f&&(ua=i?r:null,i||88!=r||Le||!(y?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!y&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n))}L(t,"CodeMirror-crosshair"),fe(document,"keyup",n),fe(document,"mouseover",n)}(t)}}function fa(e){16==e.keyCode&&(this.doc.sel.shift=!1),me(this,e)}function da(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||_n(t.display,e)||me(t,e)||e.ctrlKey&&!e.altKey||y&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ua)return ua=null,void be(e);if(!f||e.which&&!(e.which<10)||!la(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return aa(e,"'"+n+"'",t,(function(t){return ia(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var pa,ha,ma=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ga(e){var t=this,n=t.display;if(!(me(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,_n(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ba(t,e)){var r=ur(t,e),i=Ce(e),o=r?function(e,t){var n=+new Date;return ha&&ha.compare(n,e,t)?(pa=ha=null,"triple"):pa&&pa.compare(n,e,t)?(ha=new ma(n,e,t),pa=null,"double"):(pa=new ma(n,e,t),ha=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),aa(e,Qo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ta[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=B}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(M(_r,e),0):e.curOp.focus=I();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=y?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?n.altKey:n.ctrlKey)),i}(e,n,r),u=e.doc.sel;e.options.dragDrop&&we&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(tt((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ei(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,pe(i.wrapper.ownerDocument,"mouseup",u),pe(i.wrapper.ownerDocument,"mousemove",c),pe(i.scroller,"dragstart",f),pe(i.scroller,"drop",u),o||(be(t),r.addNew||Qi(e.doc,n,null,null,r.extend),l&&!d||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),fe(i.wrapper.ownerDocument,"mouseup",u),fe(i.wrapper.ownerDocument,"mousemove",c),fe(i.scroller,"dragstart",f),fe(i.scroller,"drop",u),xr(e),setTimeout((function(){return i.input.focus()}),20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;be(t);var a,s,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?u[s]:new xi(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new xi(n,n)),n=ur(e,t,!0,!0),s=-1;else{var c=va(e,n,r.unit);a=r.extend?zi(a,c.anchor,c.head,r.extend):c}r.addNew?-1==s?(s=u.length,Zi(o,Ci(e,u.concat([a]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==r.unit&&!r.extend?(Zi(o,Ci(e,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Yi(o,s,a,H):(s=0,Zi(o,new _i([a],0),H),l=o.sel);var f=n;function d(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],u=e.options.tabSize,c=P(Ke(o,n.line).text,n.ch,u),d=P(Ke(o,t.line).text,t.ch,u),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Ke(o,m).text,y=G(v,p,u);p==h?i.push(new xi(et(m,y),et(m,y))):v.length>y&&i.push(new xi(et(m,y),et(m,G(v,h,u))))}i.length||i.push(new xi(n,n)),Zi(o,Ci(e,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,T=a,E=va(e,t,r.unit),_=T.anchor;tt(E.anchor,_)>0?(b=E.head,_=ot(T.from(),E.anchor)):(b=E.anchor,_=it(T.to(),E.head));var x=l.ranges.slice(0);x[s]=function(e,t){var n=t.anchor,r=t.head,i=Ke(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=ue(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=se(o,r.ch,r.sticky),f=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var d=o[u+(l?-1:0)],p=l==(1==d.level),h=p?d.from:d.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new xi(new et(n.line,h,m),r)}(e,new xi(st(o,_),b)),Zi(o,Ci(e,x,s),H)}}var p=i.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,t&&(be(t),i.input.focus()),pe(i.wrapper.ownerDocument,"mousemove",g),pe(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=ei(e,(function(t){0!==t.buttons&&Ce(t)?function t(n){var a=++h,s=ur(e,n,!0,"rectangle"==r.unit);if(s)if(0!=tt(s,f)){e.curOp.focus=I(),d(s);var l=kr(i,o);(s.line>=l.to||s.line<l.from)&&setTimeout(ei(e,(function(){h==a&&t(n)})),150)}else{var u=n.clientY<p.top?-20:n.clientY>p.bottom?20:0;u&&setTimeout(ei(e,(function(){h==a&&(i.scroller.scrollTop+=u,t(n))})),50)}}(t):m(t)})),v=ei(e,m);e.state.selectingText=v,fe(i.wrapper.ownerDocument,"mousemove",g),fe(i.wrapper.ownerDocument,"mouseup",v)}(e,r,t,o)}(t,r,o,e):xe(e)==n.scroller&&be(e):2==i?(r&&Qi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(x?t.display.input.onContextMenu(e):xr(t)))}}function va(e,t,n){if("char"==n)return new xi(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new xi(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new xi(r.from,r.to)}function ya(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&be(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ve(e,n))return Ee(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return he(e,n,e,Je(e.doc,o),e.display.gutterSpecs[l].className,t),Ee(t)}}function ba(e,t){return ya(e,t,"gutterClick",!0)}function Ta(e,t){_n(e.display,t)||function(e,t){return!!ve(e,"gutterContextMenu")&&ya(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||x||e.display.input.onContextMenu(t)}function Ea(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var _a={toString:function(){return"CodeMirror.Init"}},xa={},Ca={};function Oa(e,t,n){if(!t!=!(n&&n!=_a)){var r=e.display.dragFunctions,i=t?fe:pe;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Sa(e){e.options.lineWrapping?(L(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Gt(e)),lr(e),fr(e),Un(e),setTimeout((function(){return Br(e)}),100)}function wa(e,t){var n=this;if(!(this instanceof wa))return new wa(e,t);this.options=t=t?j(t):{},j(xa,t,!1);var r=t.value;"string"==typeof r?r=new Ao(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new wa.inputStyles[t.inputStyle](this),o=this.display=new gi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Ea(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;fe(t.scroller,"mousedown",ei(e,ga)),fe(t.scroller,"dblclick",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=ur(e,t);if(n&&!ba(e,t)&&!_n(e.display,t)){be(t);var r=e.findWordAt(n);Qi(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||be(t)}),fe(t.scroller,"contextmenu",(function(t){return Ta(e,t)})),fe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ta(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}fe(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ba(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),fe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),fe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!_n(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new xi(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new xi(et(s.line,0),st(e.doc,et(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),be(n)}i()})),fe(t.scroller,"touchcancel",i),fe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Fr(e,t.scroller.scrollTop),jr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),fe(t.scroller,"mousewheel",(function(t){return Ei(e,t)})),fe(t.scroller,"DOMMouseScroll",(function(t){return Ei(e,t)})),fe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||_e(t)},over:function(t){me(e,t)||(function(e,t){var n=ur(e,t);if(n){var r=document.createDocumentFragment();yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),k(e.display.dragCursor,r)}}(e,t),_e(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Io<100))_e(t);else if(!me(e,t)&&!_n(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!d)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Lo),leave:function(t){me(e,t)||Ro(e)}};var l=t.input.getField();fe(l,"keyup",(function(t){return fa.call(e,t)})),fe(l,"keydown",ei(e,ca)),fe(l,"keypress",ei(e,da)),fe(l,"focus",(function(t){return Cr(e,t)})),fe(l,"blur",(function(t){return Or(e,t)}))}(this),jo(),Kr(this),this.curOp.forceUpdate=!0,Fi(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Cr(n)}),20):Or(this),Ca)Ca.hasOwnProperty(u)&&Ca[u](this,t[u],_a);di(this),t.finishInit&&t.finishInit(this);for(var c=0;c<ka.length;++c)ka[c](this);zr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}wa.defaults=xa,wa.optionHandlers=Ca;var ka=[];function Na(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=pt(e,t).state:n="prev");var a=e.options.tabSize,s=Ke(o,t),l=P(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==B||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?P(Ke(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)d+=a,f+="\t";if(d<u&&(f+=z(u-d)),f!=c)return mo(o,f,et(t,0),et(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=et(t,c.length);Yi(o,h,new xi(g,g));break}}}wa.defineInitHook=function(e){return ka.push(e)};var Da=null;function Aa(e){Da=e}function Ia(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Ae(t),u=null;if(s&&r.ranges.length>1)if(Da&&Da.text.join("\n")==t){if(r.ranges.length%Da.text.length==0){u=[];for(var c=0;c<Da.text.length;c++)u.push(o.splitLines(Da.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=W(l,(function(e){return[e]})));for(var f=e.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var p=r.ranges[d],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(Ke(o,m.line).text.length,m.ch+Q(l).length)):s&&Da&&Da.lineWise&&Da.text.join("\n")==l.join("\n")&&(h=m=et(h.line,0)));var g={from:h,to:m,text:u?u[d%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};uo(e.doc,g),ln(e,"inputRead",e,g)}t&&!s&&Ra(e,t),Ar(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function La(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zr(t,(function(){return Ia(t,n,0,null,"paste")})),!0}function Ra(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Na(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ke(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Na(e,i.head.line,"smart"));a&&ln(e,"electricInput",e,i.head.line)}}}function Fa(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:et(i,0),head:et(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Ma(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function ja(){var e=N("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=N("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Ma(e),t}function Pa(e,t,n,r,i){var o=t,a=n,s=Ke(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(o){var a,u;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(r>0?0:-1));a=isNaN(c)?null:new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(c>=55296&&c<56320?2:1))),-n)}else a=i?function(e,t,n,r){var i=ue(t,e.doc.direction);if(!i)return Zo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Zo(t,n,r);var s,l=function(e,n){return Xo(t,e instanceof et?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||In(e,t),Xn(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var f=1==a.level==r<0,d=l(n,f?1:-1);if(null!=d&&(f?d<=a.to&&d<=c.end:d>=a.from&&d>=c.begin)){var p=f?"before":"after";return new et(n.line,d,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,l(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},m=h(o+r,r,c);if(m)return m;var g=r>0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,s,t,n):Zo(s,t,n);if(null==a){if(o||(u=t.line+l)<e.first||u>=e.first+e.size||(t=new et(u,t.ch,t.sticky),!(s=Ke(e,u))))return!1;t=ea(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,d)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||p||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!p))break}var g=oo(e,t,o,a,!0);return nt(o,g)&&(g.hitSide=!0),g}function Va(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Yn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ua=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ba(e,t){var n=An(e,t.line);if(!n||n.hidden)return null;var r=Ke(e.doc,t.line),i=Nn(n,r,t.line),o=ue(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Mn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function $a(e,t){return t&&(e.bad=!0),e}function Ha(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return $a(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return qa(o,t,n)}}function qa(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!A(r,t))return $a(et(Ye(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Q(e.rest):e.line;return $a(et(Ye(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=Ye(i<0?e.line:e.rest[i]),f=o[a]+r;return(r<0||s!=t)&&(f=o[a+(r?1:0)]),et(c,f)}}}var f=c(a,s,n);if(f)return $a(f,i);for(var d=s.nextSibling,p=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(f=c(d,d.firstChild,0))return $a(et(f.line,f.ch-p),i);p+=d.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(f=c(h,h.firstChild,-1))return $a(et(f.line,f.ch+m),i);m+=h.textContent.length}}Ua.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!me(r,e)){if(r.somethingSelected())Aa({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Fa(r);Aa({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,$),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Da.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=ja(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Da.text.join("\n");var u=document.activeElement;F(l),setTimeout((function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()}),50)}}Ma(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),fe(i,"paste",(function(e){!o(e)||me(r,e)||La(e,r)||s<=11&&setTimeout(ei(r,(function(){return t.updateFromDOM()})),20)})),fe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),fe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),fe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),fe(i,"touchstart",(function(){return n.forceCompositionEnd()})),fe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),fe(i,"copy",a),fe(i,"cut",a)},Ua.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ua.prototype.prepareSelection=function(){var e=vr(this.cm,!1);return e.focus=document.activeElement==this.div,e},Ua.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ua.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ua.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Ha(t,e.anchorNode,e.anchorOffset),s=Ha(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=tt(ot(a,s),i)||0!=tt(it(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Ba(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Ba(t,o);if(!c){var f=l[l.length-1].measure,d=f.maps?f.maps[f.maps.length-1]:f.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=O(u.node,u.offset,c.offset,c.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ua.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ua.prototype.showMultipleSelections=function(e){k(this.cm.display.cursorDiv,e.cursors),k(this.cm.display.selectionDiv,e.selection)},Ua.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ua.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return A(this.div,t)},Ua.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ua.prototype.blur=function(){this.div.blur()},Ua.prototype.getField=function(){return this.div},Ua.prototype.supportsTouch=function(){return!0},Ua.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Zr(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},Ua.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ua.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(g&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ha(t,e.anchorNode,e.anchorOffset),r=Ha(t,e.focusNode,e.focusOffset);n&&r&&Zr(t,(function(){Zi(t.doc,Oi(n,r),$),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ua.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=et(a.line-1,Ke(r.doc,a.line-1).length)),s.ch==Ke(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=et(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=cr(r,a.line))?(t=Ye(i.view[0].line),n=i.view[0].node):(t=Ye(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=cr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=Ye(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(et(r,0),et(i+1,0),(g=+d,function(e){return e.id==g}));return void(p.length&&(o=p[0].find(0))&&c(ze(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m<t.childNodes.length;m++)f(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var g}for(;f(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,u,t,l)),d=ze(r.doc,et(t,0),et(l,Ke(r.doc,l).text.length));f.length>1&&d.length>1;)if(Q(f)==Q(d))f.pop(),d.pop(),l--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),t++}for(var p=0,h=0,m=f[0],g=d[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=Q(f),b=Q(d),T=Math.min(y.length-(1==f.length?p:0),b.length-(1==d.length?p:0));h<T&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==f.length&&1==d.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;f[f.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(p).replace(/\u200b+$/,"");var E=et(t,p),_=et(l,d.length?Q(d).length-h:0);return f.length>1||f[0]||tt(E,_)?(mo(r.doc,f,E,_,"+input"),!0):void 0},Ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ua.prototype.reset=function(){this.forceCompositionEnd()},Ua.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ua.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ua.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Zr(this.cm,(function(){return fr(e.cm)}))},Ua.prototype.setUneditable=function(e){e.contentEditable="false"},Ua.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Ia)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ua.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ua.prototype.onContextMenu=function(){},Ua.prototype.resetPosition=function(){},Ua.prototype.needsContentAttribute=!0;var Ga=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};Ga.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Aa({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Fa(r);Aa({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),F(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),fe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),fe(i,"paste",(function(e){me(r,e)||La(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),fe(i,"cut",o),fe(i,"copy",o),fe(e.scroller,"paste",(function(t){if(!_n(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),fe(e.lineSpace,"selectstart",(function(t){_n(e,t)||be(t)})),fe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),fe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ga.prototype.createField=function(e){this.wrapper=ja(),this.textarea=this.wrapper.firstChild},Ga.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ga.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=vr(e);if(e.options.moveInputWithCursor){var i=zn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ga.prototype.showSelection=function(e){var t=this.cm.display;k(t.cursorDiv,e.cursors),k(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ga.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&F(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ga.prototype.getField=function(){return this.textarea},Ga.prototype.supportsTouch=function(){return!1},Ga.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||I()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ga.prototype.blur=function(){this.textarea.blur()},Ga.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ga.prototype.receivedFocus=function(){this.slowPoll()},Ga.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ga.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ga.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ie(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Zr(t,(function(){Ia(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ga.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ga.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ga.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=ur(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Zi)(n.doc,Oi(o),$);var c,d=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),r.input.focus(),l&&window.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),x){_e(e);var m=function(){pe(window,"mouseup",m),setTimeout(v,20)};fe(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ga.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ga.prototype.setUneditable=function(){},Ga.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=_a&&i(e,t,n)}:i)}e.defineOption=n,e.Init=_a,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Di(e)}),!0),n("indentUnit",2,Di,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Ai(e),Un(e),fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=_a&&e.refresh()})),n("specialCharPlaceholder",Xt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!T),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ea(e),mi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Yo(t),i=n!=_a&&Yo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Sa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=pi(t,e.options.lineNumbers),mi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Br(e)}),!0),n("scrollbarStyle","native",(function(e){qr(e),Br(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=pi(e.options.gutters,t),mi(e)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(e){return e}),mi,!0),n("showCursorWhenSelecting",!1,gr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Or(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Oa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,gr,!0),n("singleCursorHeightPerLine",!0,gr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ai,!0),n("addModeClass",!1,Ai,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Ai,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(wa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Yo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ti((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,fr(this)})),removeOverlay:ti((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void fr(this)}})),indentLine:ti((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Xe(this.doc,e)&&Na(this,e,t,n)})),indentSelection:ti((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Na(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Ar(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Na(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&Yi(this.doc,r,new xi(o,u[r].to()),$)}}})),getTokenAt:function(e,t){return yt(this,e,t)},getLineTokens:function(e,t){return yt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=dt(this,Ke(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==U(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return pt(this,(e=at(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return zn(this,null==e?n.head:"object"==typeof e?st(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Kn(this,st(this.doc,e),t||"page")},coordsChar:function(e,t){return Yn(this,(e=Gn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Gn(this,{top:e,left:0},t||"page").top,Je(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Ke(this.doc,e)}else r=e;return qn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Ht(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l=this.display,u=(e=zn(this,st(this.doc,e))).bottom,c=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),l.sizer.appendChild(t),"over"==r)u=e.top;else if("above"==r||"near"==r){var f=Math.max(l.wrapper.clientHeight,this.doc.height),d=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>f)&&e.top>t.offsetHeight?u=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=f&&(u=e.bottom),c+t.offsetWidth>d&&(c=d-t.offsetWidth)}t.style.top=u+"px",t.style.left=t.style.right="","right"==i?(c=l.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-t.offsetWidth)/2),t.style.left=c+"px"),n&&(o=this,a={left:c,top:u,right:c+t.offsetWidth,bottom:u+t.offsetHeight},null!=(s=Nr(o,a)).scrollTop&&Fr(o,s.scrollTop),null!=s.scrollLeft&&jr(o,s.scrollLeft))},triggerOnKeyDown:ti(ca),triggerOnKeyPress:ti(da),triggerOnKeyUp:fa,triggerOnMouseDown:ti(ga),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){Ra(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a<t&&!(o=Pa(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ti((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Pa(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),q)})),deleteH:ti((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Jo(this,(function(n){var i=Pa(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=st(this.doc,e),s=0;s<t;++s){var l=zn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Va(this,l,i,n)).hitSide)break}return a},moveV:ti((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=zn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Va(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Dr(n,Kn(n,l,"div").top-s.top),l}),q),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Ke(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ee(o,i)?function(e){return ee(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new xi(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?L(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),he(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti((function(e,t){Ir(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Sn(this)-this.display.barHeight,width:e.scrollWidth-Sn(this)-this.display.barWidth,clientHeight:kn(this),clientWidth:wn(this)}},scrollIntoView:ti((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Lr(e),e.curOp.scrollToPos=t}(this,e):Rr(this,e.from,e.to,e.margin)})),setSize:ti((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Vn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){dr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,he(this,"refresh",this)})),operation:function(e){return Zr(this,e)},startOperation:function(){return Kr(this)},endOperation:function(){return zr(this)},refresh:ti((function(){var e=this.display.cachedTextHeight;fr(this),this.curOp.forceUpdate=!0,Un(this),Ir(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&lr(this),he(this,"refresh",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Fi(this,e),Un(this),this.display.input.reset(),Ir(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ye(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(wa);var Ka="iter insert remove copy getEditor constructor".split(" ");for(var za in Ao.prototype)Ao.prototype.hasOwnProperty(za)&&U(Ka,za)<0&&(wa.prototype[za]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ao.prototype[za]));return ye(Ao),wa.inputStyles={textarea:Ga,contenteditable:Ua},wa.defineMode=function(e){wa.defaults.mode||"null"==e||(wa.defaults.mode=e),je.apply(this,arguments)},wa.defineMIME=function(e,t){Me[e]=t},wa.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),wa.defineMIME("text/plain","null"),wa.defineExtension=function(e,t){wa.prototype[e]=t},wa.defineDocExtension=function(e,t){Ao.prototype[e]=t},wa.fromTextArea=function(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(fe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(pe(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=wa((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=pe,e.on=fe,e.wheelEventPixels=Ti,e.Doc=Ao,e.splitLines=Ae,e.countColumn=P,e.findColumn=G,e.isWordChar=Z,e.Pass=B,e.signal=he,e.Line=Kt,e.changeEnd=Si,e.scrollbarModel=Hr,e.Pos=et,e.cmpPos=tt,e.modes=Fe,e.mimeModes=Me,e.resolveMode=Pe,e.getMode=Ve,e.modeExtensions=Ue,e.extendMode=Be,e.copyState=$e,e.startState=qe,e.innerMode=He,e.commands=ta,e.keyMap=Ho,e.keyName=Wo,e.isModifierKey=zo,e.lookupKey=Ko,e.normalizeKeyMap=Go,e.StringStream=Ge,e.SharedTextMarker=wo,e.TextMarker=Oo,e.LineWidget=_o,e.e_preventDefault=be,e.e_stopPropagation=Te,e.e_stop=_e,e.addClass=L,e.contains=A,e.rmClass=S,e.keyNames=Vo}(wa),wa.version="5.58.2",wa}()})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return r})),n.d(t,"versionInfo",(function(){return i})),n.d(t,"graphql",(function(){return zn})),n.d(t,"graphqlSync",(function(){return Qn})),n.d(t,"GraphQLSchema",(function(){return ve})),n.d(t,"GraphQLDirective",(function(){return oe})),n.d(t,"GraphQLScalarType",(function(){return Q.g})),n.d(t,"GraphQLObjectType",(function(){return Q.f})),n.d(t,"GraphQLInterfaceType",(function(){return Q.c})),n.d(t,"GraphQLUnionType",(function(){return Q.h})),n.d(t,"GraphQLEnumType",(function(){return Q.a})),n.d(t,"GraphQLInputObjectType",(function(){return Q.b})),n.d(t,"GraphQLList",(function(){return Q.d})),n.d(t,"GraphQLNonNull",(function(){return Q.e})),n.d(t,"specifiedScalarTypes",(function(){return ne.g})),n.d(t,"GraphQLInt",(function(){return ne.d})),n.d(t,"GraphQLFloat",(function(){return ne.b})),n.d(t,"GraphQLString",(function(){return ne.e})),n.d(t,"GraphQLBoolean",(function(){return ne.a})),n.d(t,"GraphQLID",(function(){return ne.c})),n.d(t,"specifiedDirectives",(function(){return pe})),n.d(t,"GraphQLIncludeDirective",(function(){return ae})),n.d(t,"GraphQLSkipDirective",(function(){return se})),n.d(t,"GraphQLDeferDirective",(function(){return le})),n.d(t,"GraphQLStreamDirective",(function(){return ue})),n.d(t,"GraphQLDeprecatedDirective",(function(){return fe})),n.d(t,"GraphQLSpecifiedByDirective",(function(){return de})),n.d(t,"TypeKind",(function(){return ee.TypeKind})),n.d(t,"DEFAULT_DEPRECATION_REASON",(function(){return ce})),n.d(t,"introspectionTypes",(function(){return ee.introspectionTypes})),n.d(t,"__Schema",(function(){return ee.__Schema})),n.d(t,"__Directive",(function(){return ee.__Directive})),n.d(t,"__DirectiveLocation",(function(){return ee.__DirectiveLocation})),n.d(t,"__Type",(function(){return ee.__Type})),n.d(t,"__Field",(function(){return ee.__Field})),n.d(t,"__InputValue",(function(){return ee.__InputValue})),n.d(t,"__EnumValue",(function(){return ee.__EnumValue})),n.d(t,"__TypeKind",(function(){return ee.__TypeKind})),n.d(t,"SchemaMetaFieldDef",(function(){return ee.SchemaMetaFieldDef})),n.d(t,"TypeMetaFieldDef",(function(){return ee.TypeMetaFieldDef})),n.d(t,"TypeNameMetaFieldDef",(function(){return ee.TypeNameMetaFieldDef})),n.d(t,"isSchema",(function(){return me})),n.d(t,"isDirective",(function(){return re})),n.d(t,"isType",(function(){return Q.T})),n.d(t,"isScalarType",(function(){return Q.S})),n.d(t,"isObjectType",(function(){return Q.O})),n.d(t,"isInterfaceType",(function(){return Q.I})),n.d(t,"isUnionType",(function(){return Q.U})),n.d(t,"isEnumType",(function(){return Q.F})),n.d(t,"isInputObjectType",(function(){return Q.G})),n.d(t,"isListType",(function(){return Q.K})),n.d(t,"isNonNullType",(function(){return Q.M})),n.d(t,"isInputType",(function(){return Q.H})),n.d(t,"isOutputType",(function(){return Q.P})),n.d(t,"isLeafType",(function(){return Q.J})),n.d(t,"isCompositeType",(function(){return Q.E})),n.d(t,"isAbstractType",(function(){return Q.D})),n.d(t,"isWrappingType",(function(){return Q.V})),n.d(t,"isNullableType",(function(){return Q.N})),n.d(t,"isNamedType",(function(){return Q.L})),n.d(t,"isRequiredArgument",(function(){return Q.Q})),n.d(t,"isRequiredInputField",(function(){return Q.R})),n.d(t,"isSpecifiedScalarType",(function(){return ne.f})),n.d(t,"isIntrospectionType",(function(){return ee.isIntrospectionType})),n.d(t,"isSpecifiedDirective",(function(){return he})),n.d(t,"assertSchema",(function(){return ge})),n.d(t,"assertDirective",(function(){return ie})),n.d(t,"assertType",(function(){return Q.x})),n.d(t,"assertScalarType",(function(){return Q.w})),n.d(t,"assertObjectType",(function(){return Q.u})),n.d(t,"assertInterfaceType",(function(){return Q.o})),n.d(t,"assertUnionType",(function(){return Q.y})),n.d(t,"assertEnumType",(function(){return Q.l})),n.d(t,"assertInputObjectType",(function(){return Q.m})),n.d(t,"assertListType",(function(){return Q.q})),n.d(t,"assertNonNullType",(function(){return Q.s})),n.d(t,"assertInputType",(function(){return Q.n})),n.d(t,"assertOutputType",(function(){return Q.v})),n.d(t,"assertLeafType",(function(){return Q.p})),n.d(t,"assertCompositeType",(function(){return Q.k})),n.d(t,"assertAbstractType",(function(){return Q.j})),n.d(t,"assertWrappingType",(function(){return Q.z})),n.d(t,"assertNullableType",(function(){return Q.t})),n.d(t,"assertNamedType",(function(){return Q.r})),n.d(t,"getNullableType",(function(){return Q.C})),n.d(t,"getNamedType",(function(){return Q.B})),n.d(t,"validateSchema",(function(){return be})),n.d(t,"assertValidSchema",(function(){return Te})),n.d(t,"assertName",(function(){return te.b})),n.d(t,"assertEnumValueName",(function(){return te.a})),n.d(t,"Token",(function(){return c.d})),n.d(t,"Source",(function(){return m})),n.d(t,"Location",(function(){return c.a})),n.d(t,"OperationTypeNode",(function(){return c.b})),n.d(t,"getLocation",(function(){return Yn.a})),n.d(t,"printLocation",(function(){return Jn.a})),n.d(t,"printSourceLocation",(function(){return Jn.b})),n.d(t,"Lexer",(function(){return T})),n.d(t,"TokenKind",(function(){return f})),n.d(t,"parse",(function(){return U})),n.d(t,"parseValue",(function(){return B})),n.d(t,"parseConstValue",(function(){return $})),n.d(t,"parseType",(function(){return H})),n.d(t,"print",(function(){return et.a})),n.d(t,"visit",(function(){return z.d})),n.d(t,"visitInParallel",(function(){return z.e})),n.d(t,"getVisitFn",(function(){return z.c})),n.d(t,"getEnterLeaveForKind",(function(){return z.b})),n.d(t,"BREAK",(function(){return z.a})),n.d(t,"Kind",(function(){return u.a})),n.d(t,"DirectiveLocation",(function(){return v.a})),n.d(t,"isDefinitionNode",(function(){return Ve})),n.d(t,"isExecutableDefinitionNode",(function(){return Ue})),n.d(t,"isSelectionNode",(function(){return Be})),n.d(t,"isValueNode",(function(){return $e})),n.d(t,"isConstValueNode",(function(){return He})),n.d(t,"isTypeNode",(function(){return qe})),n.d(t,"isTypeSystemDefinitionNode",(function(){return Ge})),n.d(t,"isTypeDefinitionNode",(function(){return Ke})),n.d(t,"isTypeSystemExtensionNode",(function(){return ze})),n.d(t,"isTypeExtensionNode",(function(){return Qe})),n.d(t,"execute",(function(){return wn})),n.d(t,"executeSync",(function(){return kn})),n.d(t,"defaultFieldResolver",(function(){return Hn})),n.d(t,"defaultTypeResolver",(function(){return $n})),n.d(t,"responsePathAsArray",(function(){return at})),n.d(t,"getDirectiveValues",(function(){return dt})),n.d(t,"subscribe",(function(){return Xn})),n.d(t,"createSourceEventStream",(function(){return Zn})),n.d(t,"validate",(function(){return xn})),n.d(t,"ValidationContext",(function(){return _n})),n.d(t,"specifiedRules",(function(){return yn})),n.d(t,"ExecutableDefinitionsRule",(function(){return We})),n.d(t,"FieldsOnCorrectTypeRule",(function(){return St})),n.d(t,"FragmentsOnCompositeTypesRule",(function(){return _t})),n.d(t,"KnownArgumentNamesRule",(function(){return Pt})),n.d(t,"KnownDirectivesRule",(function(){return Mt})),n.d(t,"KnownFragmentNamesRule",(function(){return kt})),n.d(t,"KnownTypeNamesRule",(function(){return Tt})),n.d(t,"LoneAnonymousOperationRule",(function(){return Je})),n.d(t,"NoFragmentCyclesRule",(function(){return At})),n.d(t,"NoUndefinedVariablesRule",(function(){return Rt})),n.d(t,"NoUnusedFragmentsRule",(function(){return Nt})),n.d(t,"NoUnusedVariablesRule",(function(){return Ft})),n.d(t,"OverlappingFieldsCanBeMergedRule",(function(){return Wt})),n.d(t,"PossibleFragmentSpreadsRule",(function(){return Dt})),n.d(t,"ProvidedRequiredArgumentsRule",(function(){return Ht})),n.d(t,"ScalarLeafsRule",(function(){return Ct})),n.d(t,"SingleFieldSubscriptionsRule",(function(){return bt})),n.d(t,"UniqueArgumentNamesRule",(function(){return Ut})),n.d(t,"UniqueDirectivesPerLocationRule",(function(){return jt})),n.d(t,"UniqueFragmentNamesRule",(function(){return wt})),n.d(t,"UniqueInputFieldNamesRule",(function(){return sn})),n.d(t,"UniqueOperationNamesRule",(function(){return Ye})),n.d(t,"UniqueVariableNamesRule",(function(){return Lt})),n.d(t,"ValuesOfCorrectTypeRule",(function(){return Bt})),n.d(t,"VariablesAreInputTypesRule",(function(){return xt})),n.d(t,"VariablesInAllowedPositionRule",(function(){return Kt})),n.d(t,"LoneSchemaDefinitionRule",(function(){return ln})),n.d(t,"UniqueOperationTypesRule",(function(){return un})),n.d(t,"UniqueTypeNamesRule",(function(){return cn})),n.d(t,"UniqueEnumValueNamesRule",(function(){return fn})),n.d(t,"UniqueFieldDefinitionNamesRule",(function(){return dn})),n.d(t,"UniqueArgumentDefinitionNamesRule",(function(){return hn})),n.d(t,"UniqueDirectiveNamesRule",(function(){return mn})),n.d(t,"PossibleTypeExtensionsRule",(function(){return gn})),n.d(t,"NoDeprecatedCustomRule",(function(){return er})),n.d(t,"NoSchemaIntrospectionCustomRule",(function(){return tr})),n.d(t,"GraphQLError",(function(){return s.a})),n.d(t,"syntaxError",(function(){return l})),n.d(t,"locatedError",(function(){return On})),n.d(t,"printError",(function(){return s.c})),n.d(t,"formatError",(function(){return s.b})),n.d(t,"getIntrospectionQuery",(function(){return nr})),n.d(t,"getOperationAST",(function(){return rr})),n.d(t,"getOperationRootType",(function(){return ir})),n.d(t,"introspectionFromSchema",(function(){return or})),n.d(t,"buildClientSchema",(function(){return sr})),n.d(t,"buildASTSchema",(function(){return hr})),n.d(t,"buildSchema",(function(){return mr})),n.d(t,"extendSchema",(function(){return ur})),n.d(t,"lexicographicSortSchema",(function(){return gr})),n.d(t,"printSchema",(function(){return Er})),n.d(t,"printType",(function(){return Sr})),n.d(t,"printIntrospectionSchema",(function(){return _r})),n.d(t,"typeFromAST",(function(){return Fe})),n.d(t,"valueFromAST",(function(){return tt})),n.d(t,"valueFromASTUntyped",(function(){return Rr.a})),n.d(t,"astFromValue",(function(){return Tr.a})),n.d(t,"TypeInfo",(function(){return Me})),n.d(t,"visitWithTypeInfo",(function(){return Pe})),n.d(t,"coerceInputValue",(function(){return lt})),n.d(t,"concatAST",(function(){return Fr})),n.d(t,"separateOperations",(function(){return Mr})),n.d(t,"stripIgnoredCharacters",(function(){return Vr})),n.d(t,"isEqualType",(function(){return W})),n.d(t,"isTypeSubTypeOf",(function(){return Y})),n.d(t,"doTypesOverlap",(function(){return J})),n.d(t,"assertValidName",(function(){return Br})),n.d(t,"isValidNameError",(function(){return $r})),n.d(t,"BreakingChangeType",(function(){return Hr})),n.d(t,"DangerousChangeType",(function(){return qr})),n.d(t,"findBreakingChanges",(function(){return Gr})),n.d(t,"findDangerousChanges",(function(){return Kr}));const r="16.0.0-experimental-stream-defer.5",i=Object.freeze({major:16,minor:0,patch:0,preReleaseTag:"experimental-stream-defer.5"});function o(e){return"function"==typeof(null==e?void 0:e.then)}function a(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}var s=n(2);function l(e,t,n){return new s.a("Syntax Error: "+n,void 0,e,[t])}var u=n(1),c=n(13);let f;!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(f||(f={}));var d=n(3),p=n(6),h=n(20);class m{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||Object(p.a)(!1,`Body must be a string. Received: ${Object(d.a)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Object(p.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Object(p.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function g(e){return Object(h.a)(e,m)}var v=n(4),y=n(26),b=n(24);class T{constructor(e){const t=new c.d(f.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==f.EOF)do{if(e.next)e=e.next;else{const t=k(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===f.COMMENT);return e}}function E(e){return e===f.BANG||e===f.DOLLAR||e===f.AMP||e===f.PAREN_L||e===f.PAREN_R||e===f.SPREAD||e===f.COLON||e===f.EQUALS||e===f.AT||e===f.BRACKET_L||e===f.BRACKET_R||e===f.BRACE_L||e===f.PIPE||e===f.BRACE_R}function _(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function x(e,t){return C(e.charCodeAt(t))&&O(e.charCodeAt(t+1))}function C(e){return e>=55296&&e<=56319}function O(e){return e>=56320&&e<=57343}function S(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return f.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function w(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new c.d(t,n,r,o,a,i)}function k(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return N(e,i);case 33:return w(e,f.BANG,i,i+1);case 36:return w(e,f.DOLLAR,i,i+1);case 38:return w(e,f.AMP,i,i+1);case 40:return w(e,f.PAREN_L,i,i+1);case 41:return w(e,f.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return w(e,f.SPREAD,i,i+3);break;case 58:return w(e,f.COLON,i,i+1);case 61:return w(e,f.EQUALS,i,i+1);case 64:return w(e,f.AT,i,i+1);case 91:return w(e,f.BRACKET_L,i,i+1);case 93:return w(e,f.BRACKET_R,i,i+1);case 123:return w(e,f.BRACE_L,i,i+1);case 124:return w(e,f.PIPE,i,i+1);case 125:return w(e,f.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?P(e,i):I(e,i)}if(Object(b.a)(t)||45===t)return D(e,i,t);if(Object(b.c)(t))return V(e,i);throw l(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":_(t)||x(n,i)?`Unexpected character: ${S(e,i)}.`:`Invalid character: ${S(e,i)}.`)}return w(e,f.EOF,r,r)}function N(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(_(e))++i;else{if(!x(n,i))break;i+=2}}return w(e,f.COMMENT,t,i,n.slice(t+1,i))}function D(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),Object(b.a)(o))throw l(e.source,i,`Invalid number, unexpected digit after 0: ${S(e,i)}.`)}else i=A(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=A(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=A(e,i,o),o=r.charCodeAt(i)),46===o||Object(b.c)(o))throw l(e.source,i,`Invalid number, expected digit but got: ${S(e,i)}.`);return w(e,a?f.FLOAT:f.INT,t,i,r.slice(t,i))}function A(e,t,n){if(!Object(b.a)(n))throw l(e.source,t,`Invalid number, expected digit but got: ${S(e,t)}.`);const r=e.source.body;let i=t+1;for(;Object(b.a)(r.charCodeAt(i));)++i;return i}function I(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),w(e,f.STRING,t,i+1,a);if(92!==r){if(10===r||13===r)break;if(_(r))++i;else{if(!x(n,i))throw l(e.source,i,`Invalid character within String: ${S(e,i)}.`);i+=2}}else{a+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?L(e,i):R(e,i):j(e,i);a+=t.value,i+=t.size,o=i}}throw l(e.source,i,"Unterminated string.")}function L(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!_(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|M(e),r<0)break}throw l(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function R(e,t){const n=e.source.body,r=F(n,t+2);if(_(r))return{value:String.fromCodePoint(r),size:6};if(C(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=F(n,t+8);if(O(e))return{value:String.fromCodePoint(r,e),size:12}}throw l(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function F(e,t){return M(e.charCodeAt(t))<<12|M(e.charCodeAt(t+1))<<8|M(e.charCodeAt(t+2))<<4|M(e.charCodeAt(t+3))}function M(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function j(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw l(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function P(e,t){const n=e.source.body,r=n.length;let i=t+3,o=i,a="";for(;i<r;){const r=n.charCodeAt(i);if(34===r&&34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2))return a+=n.slice(o,i),w(e,f.BLOCK_STRING,t,i+3,Object(y.a)(a));if(92!==r||34!==n.charCodeAt(i+1)||34!==n.charCodeAt(i+2)||34!==n.charCodeAt(i+3))if(10!==r&&13!==r)if(_(r))++i;else{if(!x(n,i))throw l(e.source,i,`Invalid character within String: ${S(e,i)}.`);i+=2}else 13===r&&10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;else a+=n.slice(o,i)+'"""',i+=4,o=i}throw l(e.source,i,"Unterminated string.")}function V(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(!Object(b.b)(e))break;++i}return w(e,f.NAME,t,i,n.slice(t,i))}function U(e,t){return new q(e,t).parseDocument()}function B(e,t){const n=new q(e,t);n.expectToken(f.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(f.EOF),r}function $(e,t){const n=new q(e,t);n.expectToken(f.SOF);const r=n.parseConstValueLiteral();return n.expectToken(f.EOF),r}function H(e,t){const n=new q(e,t);n.expectToken(f.SOF);const r=n.parseTypeReference();return n.expectToken(f.EOF),r}class q{constructor(e,t){const n=g(e)?e:new m(e);this._lexer=new T(n),this._options=t}parseName(){const e=this.expectToken(f.NAME);return this.node(e,{kind:u.a.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:u.a.DOCUMENT,definitions:this.many(f.SOF,this.parseDefinition,f.EOF)})}parseDefinition(){if(this.peek(f.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===f.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw l(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(f.BRACE_L))return this.node(e,{kind:u.a.OPERATION_DEFINITION,operation:c.b.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let n;return this.peek(f.NAME)&&(n=this.parseName()),this.node(e,{kind:u.a.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(f.NAME);switch(e.value){case"query":return c.b.QUERY;case"mutation":return c.b.MUTATION;case"subscription":return c.b.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(f.PAREN_L,this.parseVariableDefinition,f.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:u.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(f.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(f.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(f.DOLLAR),this.node(e,{kind:u.a.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:u.a.SELECTION_SET,selections:this.many(f.BRACE_L,this.parseSelection,f.BRACE_R)})}parseSelection(){return this.peek(f.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(f.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:u.a.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(f.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(f.PAREN_L,t,f.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(f.COLON),this.node(t,{kind:u.a.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(f.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(f.NAME)?this.node(e,{kind:u.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:u.a.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){var e;const t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacyFragmentVariables)?this.node(t,{kind:u.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:u.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case f.BRACKET_L:return this.parseList(e);case f.BRACE_L:return this.parseObject(e);case f.INT:return this._lexer.advance(),this.node(t,{kind:u.a.INT,value:t.value});case f.FLOAT:return this._lexer.advance(),this.node(t,{kind:u.a.FLOAT,value:t.value});case f.STRING:case f.BLOCK_STRING:return this.parseStringLiteral();case f.NAME:switch(this._lexer.advance(),t.value){case"true":return this.node(t,{kind:u.a.BOOLEAN,value:!0});case"false":return this.node(t,{kind:u.a.BOOLEAN,value:!1});case"null":return this.node(t,{kind:u.a.NULL});default:return this.node(t,{kind:u.a.ENUM,value:t.value})}case f.DOLLAR:if(e){if(this.expectToken(f.DOLLAR),this._lexer.token.kind===f.NAME){const e=this._lexer.token.value;throw l(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable()}throw this.unexpected()}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this._lexer.advance(),this.node(e,{kind:u.a.STRING,value:e.value,block:e.kind===f.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:u.a.LIST,values:this.any(f.BRACKET_L,()=>this.parseValueLiteral(e),f.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:u.a.OBJECT,fields:this.any(f.BRACE_L,()=>this.parseObjectField(e),f.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(f.COLON),this.node(t,{kind:u.a.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(f.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(f.AT),this.node(t,{kind:u.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(f.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(f.BRACKET_R),t=this.node(e,{kind:u.a.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(f.BANG)?this.node(e,{kind:u.a.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:u.a.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(f.STRING)||this.peek(f.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);return this.node(e,{kind:u.a.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(f.COLON);const n=this.parseNamedType();return this.node(e,{kind:u.a.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:u.a.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:u.a.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(f.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseFieldDefinition,f.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(f.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:u.a.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(f.PAREN_L,this.parseInputValueDef,f.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(f.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(f.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:u.a.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:u.a.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:u.a.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(f.EQUALS)?this.delimitedMany(f.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:u.a.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(f.BRACE_L,this.parseEnumValueDefinition,f.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:u.a.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw l(this._lexer.source,this._lexer.token.start,G(this._lexer.token)+" is reserved and cannot be used for an enum value.");return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:u.a.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseInputValueDef,f.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===f.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:u.a.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:u.a.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:u.a.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:u.a.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:u.a.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:u.a.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:u.a.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(f.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:u.a.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(f.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(v.a,t.value))return t;throw this.unexpected(e)}node(e,t){var n;return!0!==(null===(n=this._options)||void 0===n?void 0:n.noLocation)&&(t.loc=new c.a(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw l(this._lexer.source,t.start,`Expected ${K(e)}, found ${G(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this._lexer.advance(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==f.NAME||t.value!==e)throw l(this._lexer.source,t.start,`Expected "${e}", found ${G(t)}.`);this._lexer.advance()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===f.NAME&&t.value===e&&(this._lexer.advance(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return l(this._lexer.source,t.start,`Unexpected ${G(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}}function G(e){const t=e.value;return K(e.kind)+(null!=t?` "${t}"`:"")}function K(e){return E(e)?`"${e}"`:e}var z=n(18),Q=n(0);function W(e,t){return e===t||(Object(Q.M)(e)&&Object(Q.M)(t)||!(!Object(Q.K)(e)||!Object(Q.K)(t)))&&W(e.ofType,t.ofType)}function Y(e,t,n){return t===n||(Object(Q.M)(n)?!!Object(Q.M)(t)&&Y(e,t.ofType,n.ofType):Object(Q.M)(t)?Y(e,t.ofType,n):Object(Q.K)(n)?!!Object(Q.K)(t)&&Y(e,t.ofType,n.ofType):!Object(Q.K)(t)&&(Object(Q.D)(n)&&(Object(Q.I)(t)||Object(Q.O)(t))&&e.isSubType(n,t)))}function J(e,t,n){return t===n||(Object(Q.D)(t)?Object(Q.D)(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!Object(Q.D)(n)&&e.isSubType(n,t))}var X=n(21),Z=n(15),ee=n(7),te=n(22),ne=n(5);function re(e){return Object(h.a)(e,oe)}function ie(e){if(!re(e))throw new Error(`Expected ${Object(d.a)(e)} to be a GraphQL directive.`);return e}class oe{constructor(e){var t,n;this.name=Object(te.b)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=Object(X.a)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||Object(p.a)(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};Object(Z.a)(r)&&!Array.isArray(r)||Object(p.a)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=Object(Q.A)(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Object(Q.i)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const ae=new oe({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[v.a.FIELD,v.a.FRAGMENT_SPREAD,v.a.INLINE_FRAGMENT],args:{if:{type:new Q.e(ne.a),description:"Included when true."}}}),se=new oe({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[v.a.FIELD,v.a.FRAGMENT_SPREAD,v.a.INLINE_FRAGMENT],args:{if:{type:new Q.e(ne.a),description:"Skipped when true."}}}),le=new oe({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[v.a.FRAGMENT_SPREAD,v.a.INLINE_FRAGMENT],args:{if:{type:ne.a,description:"Deferred when true or undefined."},label:{type:ne.e,description:"Unique name"}}}),ue=new oe({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[v.a.FIELD],args:{if:{type:ne.a,description:"Stream when true or undefined."},label:{type:ne.e,description:"Unique name"},initialCount:{defaultValue:0,type:ne.d,description:"Number of items to return immediately"}}}),ce="No longer supported",fe=new oe({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[v.a.FIELD_DEFINITION,v.a.ARGUMENT_DEFINITION,v.a.INPUT_FIELD_DEFINITION,v.a.ENUM_VALUE],args:{reason:{type:ne.e,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:ce}}}),de=new oe({name:"specifiedBy",description:"Exposes a URL that specifies the behaviour of this scalar.",locations:[v.a.SCALAR],args:{url:{type:new Q.e(ne.e),description:"The URL that specifies the behaviour of this scalar."}}}),pe=Object.freeze([ae,se,le,ue,fe,de]);function he(e){return pe.some(({name:t})=>t===e.name)}function me(e){return Object(h.a)(e,ve)}function ge(e){if(!me(e))throw new Error(`Expected ${Object(d.a)(e)} to be a GraphQL schema.`);return e}class ve{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,Object(Z.a)(e)||Object(p.a)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Object(p.a)(!1,`"types" must be Array if provided but got: ${Object(d.a)(e.types)}.`),!e.directives||Array.isArray(e.directives)||Object(p.a)(!1,'"directives" must be Array if provided but got: '+Object(d.a)(e.directives)+"."),this.description=e.description,this.extensions=Object(X.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:pe;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),ye(t,r);null!=this._queryType&&ye(this._queryType,r),null!=this._mutationType&&ye(this._mutationType,r),null!=this._subscriptionType&&ye(this._subscriptionType,r);for(const e of this._directives)if(re(e))for(const t of e.args)ye(t.type,r);ye(ee.__Schema,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of r){if(null==e)continue;const t=e.name;if(t||Object(p.a)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,Object(Q.I)(e)){for(const t of e.getInterfaces())if(Object(Q.I)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(Object(Q.O)(e))for(const t of e.getInterfaces())if(Object(Q.I)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case"query":return this.getQueryType();case"mutation":return this.getMutationType();case"subscription":return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return Object(Q.U)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),Object(Q.U)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function ye(e,t){const n=Object(Q.B)(e);if(!t.has(n))if(t.add(n),Object(Q.U)(n))for(const e of n.getTypes())ye(e,t);else if(Object(Q.O)(n)||Object(Q.I)(n)){for(const e of n.getInterfaces())ye(e,t);for(const e of Object.values(n.getFields())){ye(e.type,t);for(const n of e.args)ye(n.type,t)}}else if(Object(Q.G)(n))for(const e of Object.values(n.getFields()))ye(e.type,t);return t}function be(e){if(ge(e),e.__validationErrors)return e.__validationErrors;const t=new Ee(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!Object(Q.O)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${Object(d.a)(n)}.`,null!==(r=_e(t,c.b.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!Object(Q.O)(i)&&e.reportError("Mutation root type must be Object type if provided, it cannot be "+Object(d.a)(i)+".",null!==(o=_e(t,c.b.MUTATION))&&void 0!==o?o:i.astNode);const a=t.getSubscriptionType();var s;a&&!Object(Q.O)(a)&&e.reportError("Subscription root type must be Object type if provided, it cannot be "+Object(d.a)(a)+".",null!==(s=_e(t,c.b.SUBSCRIPTION))&&void 0!==s?s:a.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(re(n)){xe(e,n);for(const r of n.args){var t;if(xe(e,r),Object(Q.H)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${Object(d.a)(r.type)}.`,r.astNode),Object(Q.Q)(r)&&null!=r.deprecationReason)e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Le(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${Object(d.a)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if(Object(Q.M)(t.type)&&Object(Q.G)(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))Object(Q.L)(r)?(Object(ee.isIntrospectionType)(r)||xe(e,r),Object(Q.O)(r)||Object(Q.I)(r)?(Ce(e,r),Oe(e,r)):Object(Q.U)(r)?ke(e,r):Object(Q.F)(r)?Ne(e,r):Object(Q.G)(r)&&(De(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${Object(d.a)(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Te(e){const t=be(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}class Ee{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new s.a(e,n))}getErrors(){return this._errors}}function _e(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function xe(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Ce(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var r;if(xe(e,a),!Object(Q.P)(a.type))e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${Object(d.a)(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type);for(const n of a.args){const r=n.name;var i,o;if(xe(e,n),!Object(Q.H)(n.type))e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${Object(d.a)(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type);if(Object(Q.Q)(n)&&null!=n.deprecationReason)e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[Le(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function Oe(e,t){const n=Object.create(null);for(const r of t.getInterfaces())Object(Q.I)(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Ae(t,r)):(n[r.name]=!0,we(e,t,r),Se(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Ae(t,r)):e.reportError(`Type ${Object(d.a)(t)} must only implement Interface types, it cannot implement ${Object(d.a)(r)}.`,Ae(t,r))}function Se(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const u=l.name,c=r[u];if(c){var i,o;if(!Y(e.schema,c.type,l.type))e.reportError(`Interface field ${n.name}.${u} expects type ${Object(d.a)(l.type)} but ${t.name}.${u} is type ${Object(d.a)(c.type)}.`,[null===(i=l.astNode)||void 0===i?void 0:i.type,null===(o=c.astNode)||void 0===o?void 0:o.type]);for(const r of l.args){const i=r.name,o=c.args.find(e=>e.name===i);var a,s;if(o){if(!W(r.type,o.type))e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${Object(d.a)(r.type)} but ${t.name}.${u}(${i}:) is type `+Object(d.a)(o.type)+".",[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(s=o.astNode)||void 0===s?void 0:s.type])}else e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode])}for(const r of c.args){const i=r.name;!l.args.find(e=>e.name===i)&&Object(Q.Q)(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function we(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Ae(n,i),...Ae(t,n)])}function ke(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Ie(t,i.name)):(r[i.name]=!0,Object(Q.O)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${Object(d.a)(i)}.`,Ie(t,String(i))))}function Ne(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)xe(e,t)}function De(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;if(xe(e,o),!Object(Q.H)(o.type))e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${Object(d.a)(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type);if(Object(Q.R)(o)&&null!=o.deprecationReason)e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Le(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type])}}function Ae(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function Ie(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function Le(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===fe.name)}var Re=n(8);function Fe(e,t){let n;return t.kind===u.a.LIST_TYPE?(n=Fe(e,t.type),n&&new Q.d(n)):t.kind===u.a.NON_NULL_TYPE?(n=Fe(e,t.type),n&&new Q.e(n)):t.kind===u.a.NAMED_TYPE?e.getType(t.name.value):void Object(Re.a)(!1,"Unexpected type node: "+Object(d.a)(t))}class Me{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:je,t&&(Object(Q.H)(t)&&this._inputTypeStack.push(t),Object(Q.E)(t)&&this._parentTypeStack.push(t),Object(Q.P)(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case u.a.SELECTION_SET:{const e=Object(Q.B)(this.getType());this._parentTypeStack.push(Object(Q.E)(e)?e:void 0);break}case u.a.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(Object(Q.P)(i)?i:void 0);break}case u.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case u.a.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(Object(Q.O)(n)?n:void 0);break}case u.a.INLINE_FRAGMENT:case u.a.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?Fe(t,n):Object(Q.B)(this.getType());this._typeStack.push(Object(Q.P)(r)?r:void 0);break}case u.a.VARIABLE_DEFINITION:{const n=Fe(t,e.type);this._inputTypeStack.push(Object(Q.H)(n)?n:void 0);break}case u.a.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(Object(Q.H)(r)?r:void 0);break}case u.a.LIST:{const e=Object(Q.C)(this.getInputType()),t=Object(Q.K)(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(Q.H)(t)?t:void 0);break}case u.a.OBJECT_FIELD:{const t=Object(Q.B)(this.getInputType());let n,r;Object(Q.G)(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(Object(Q.H)(n)?n:void 0);break}case u.a.ENUM:{const t=Object(Q.B)(this.getInputType());let n;Object(Q.F)(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case u.a.SELECTION_SET:this._parentTypeStack.pop();break;case u.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case u.a.DIRECTIVE:this._directive=null;break;case u.a.OPERATION_DEFINITION:case u.a.INLINE_FRAGMENT:case u.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case u.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case u.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case u.a.LIST:case u.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case u.a.ENUM:this._enumValue=null}}}function je(e,t,n){const r=n.name.value;return r===ee.SchemaMetaFieldDef.name&&e.getQueryType()===t?ee.SchemaMetaFieldDef:r===ee.TypeMetaFieldDef.name&&e.getQueryType()===t?ee.TypeMetaFieldDef:r===ee.TypeNameMetaFieldDef.name&&Object(Q.E)(t)?ee.TypeNameMetaFieldDef:Object(Q.O)(t)||Object(Q.I)(t)?t.getFields()[r]:void 0}function Pe(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Object(z.b)(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),Object(c.e)(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Object(z.b)(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function Ve(e){return Ue(e)||Ge(e)||ze(e)}function Ue(e){return e.kind===u.a.OPERATION_DEFINITION||e.kind===u.a.FRAGMENT_DEFINITION}function Be(e){return e.kind===u.a.FIELD||e.kind===u.a.FRAGMENT_SPREAD||e.kind===u.a.INLINE_FRAGMENT}function $e(e){return e.kind===u.a.VARIABLE||e.kind===u.a.INT||e.kind===u.a.FLOAT||e.kind===u.a.STRING||e.kind===u.a.BOOLEAN||e.kind===u.a.NULL||e.kind===u.a.ENUM||e.kind===u.a.LIST||e.kind===u.a.OBJECT}function He(e){return $e(e)&&(e.kind===u.a.LIST?e.values.some(He):e.kind===u.a.OBJECT?e.fields.some(e=>He(e.value)):e.kind!==u.a.VARIABLE)}function qe(e){return e.kind===u.a.NAMED_TYPE||e.kind===u.a.LIST_TYPE||e.kind===u.a.NON_NULL_TYPE}function Ge(e){return e.kind===u.a.SCHEMA_DEFINITION||Ke(e)||e.kind===u.a.DIRECTIVE_DEFINITION}function Ke(e){return e.kind===u.a.SCALAR_TYPE_DEFINITION||e.kind===u.a.OBJECT_TYPE_DEFINITION||e.kind===u.a.INTERFACE_TYPE_DEFINITION||e.kind===u.a.UNION_TYPE_DEFINITION||e.kind===u.a.ENUM_TYPE_DEFINITION||e.kind===u.a.INPUT_OBJECT_TYPE_DEFINITION}function ze(e){return e.kind===u.a.SCHEMA_EXTENSION||Qe(e)}function Qe(e){return e.kind===u.a.SCALAR_TYPE_EXTENSION||e.kind===u.a.OBJECT_TYPE_EXTENSION||e.kind===u.a.INTERFACE_TYPE_EXTENSION||e.kind===u.a.UNION_TYPE_EXTENSION||e.kind===u.a.ENUM_TYPE_EXTENSION||e.kind===u.a.INPUT_OBJECT_TYPE_EXTENSION}function We(e){return{Document(t){for(const n of t.definitions)if(!Ue(n)){const t=n.kind===u.a.SCHEMA_DEFINITION||n.kind===u.a.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new s.a(`The ${t} definition is not executable.`,n))}return!1}}}function Ye(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new s.a(`There can be only one operation named "${r.value}".`,[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function Je(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===u.a.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new s.a("This anonymous operation must be the only defined operation.",n))}}}var Xe=n(16);function Ze(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}var et=n(9);function tt(e,t,n){if(e){if(e.kind===u.a.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&Object(Q.M)(t))return;return i}if(Object(Q.M)(t)){if(e.kind===u.a.NULL)return;return tt(e,t.ofType,n)}if(e.kind===u.a.NULL)return null;if(Object(Q.K)(t)){const r=t.ofType;if(e.kind===u.a.LIST){const t=[];for(const i of e.values)if(nt(i,n)){if(Object(Q.M)(r))return;t.push(null)}else{const e=tt(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=tt(e,r,n);if(void 0===i)return;return[i]}if(Object(Q.G)(t)){if(e.kind!==u.a.OBJECT)return;const r=Object.create(null),i=Object(Xe.a)(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||nt(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(Object(Q.M)(e.type))return;continue}const o=tt(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}return r}if(Object(Q.J)(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}Object(Re.a)(!1,"Unexpected input type: "+Object(d.a)(t))}}function nt(e,t){return e.kind===u.a.VARIABLE&&(null==t||void 0===t[e.name.value])}var rt=n(17),it=n(19);function ot(e,t,n){return{prev:e,key:t,typename:n}}function at(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}var st=n(33);function lt(e,t,n=ut){return function e(t,n,r,i){if(Object(Q.M)(n))return null!=t?e(t,n.ofType,r,i):void r(at(i),t,new s.a(`Expected non-nullable type "${Object(d.a)(n)}" not to be null.`));if(null==t)return null;if(Object(Q.K)(n)){const o=n.ofType;return Object(st.a)(t)?Array.from(t,(t,n)=>{const a=ot(i,n,void 0);return e(t,o,r,a)}):[e(t,o,r,i)]}if(Object(Q.G)(n)){if(!Object(Z.a)(t))return void r(at(i),t,new s.a(`Expected type "${n.name}" to be an object.`));const o={},a=n.getFields();for(const l of Object.values(a)){const a=t[l.name];if(void 0!==a)o[l.name]=e(a,l.type,r,ot(i,l.name,n.name));else if(void 0!==l.defaultValue)o[l.name]=l.defaultValue;else if(Object(Q.M)(l.type)){const e=Object(d.a)(l.type);r(at(i),t,new s.a(`Field "${l.name}" of required type "${e}" was not provided.`))}}for(const e of Object.keys(t))if(!a[e]){const o=Object(it.a)(e,Object.keys(n.getFields()));r(at(i),t,new s.a(`Field "${e}" is not defined by type "${n.name}".`+Object(rt.a)(o)))}return o}if(Object(Q.J)(n)){let e;try{e=n.parseValue(t)}catch(e){return void(e instanceof s.a?r(at(i),t,e):r(at(i),t,new s.a(`Expected type "${n.name}". `+e.message,void 0,void 0,void 0,void 0,e)))}return void 0===e&&r(at(i),t,new s.a(`Expected type "${n.name}".`)),e}Object(Re.a)(!1,"Unexpected input type: "+Object(d.a)(n))}(e,t,n,void 0)}function ut(e,t,n){let r="Invalid value "+Object(d.a)(t);throw e.length>0&&(r+=` at "value${Ze(e)}"`),n.message=r+": "+n.message,n}function ct(e,t,n,r){const i=[],o=null==r?void 0:r.maxErrors;try{const r=function(e,t,n,r){const i={};for(const o of t){const t=o.variable.name.value,a=Fe(e,o.type);if(!Object(Q.H)(a)){const e=Object(et.a)(o.type);r(new s.a(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,o.type));continue}if(!pt(n,t)){if(o.defaultValue)i[t]=tt(o.defaultValue,a);else if(Object(Q.M)(a)){const e=Object(d.a)(a);r(new s.a(`Variable "$${t}" of required type "${e}" was not provided.`,o))}continue}const l=n[t];if(null===l&&Object(Q.M)(a)){const e=Object(d.a)(a);r(new s.a(`Variable "$${t}" of non-null type "${e}" must not be null.`,o))}else i[t]=lt(l,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+Object(d.a)(n);e.length>0&&(a+=` at "${t}${Ze(e)}"`),r(new s.a(a+"; "+i.message,o,void 0,void 0,void 0,i.originalError))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new s.a("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function ft(e,t,n){var r;const i={},o=null!==(r=t.arguments)&&void 0!==r?r:[],a=Object(Xe.a)(o,e=>e.name.value);for(const r of e.args){const e=r.name,o=r.type,l=a[e];if(!l){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(Object(Q.M)(o))throw new s.a(`Argument "${e}" of required type "${Object(d.a)(o)}" was not provided.`,t);continue}const c=l.value;let f=c.kind===u.a.NULL;if(c.kind===u.a.VARIABLE){const t=c.name.value;if(null==n||!pt(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(Object(Q.M)(o))throw new s.a(`Argument "${e}" of required type "${Object(d.a)(o)}" was provided the variable "$${t}" which was not provided a runtime value.`,c);continue}f=null==n[t]}if(f&&Object(Q.M)(o))throw new s.a(`Argument "${e}" of non-null type "${Object(d.a)(o)}" must not be null.`,c);const p=tt(c,o,n);if(void 0===p)throw new s.a(`Argument "${e}" has invalid value ${Object(et.a)(c)}.`,c);i[e]=p}return i}function dt(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return ft(e,i,n)}function pt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ht(e,t,n,r,i){const o=new Map,a=[];return mt(e,t,n,r,i,o,a,new Set),{fields:o,patches:a}}function mt(e,t,n,r,i,o,a,s){for(const c of i.selections)switch(c.kind){case u.a.FIELD:{if(!vt(n,c))continue;const e=(l=c).alias?l.alias.value:l.name.value,t=o.get(e);void 0!==t?t.push(c):o.set(e,[c]);break}case u.a.INLINE_FRAGMENT:{if(!vt(n,c)||!yt(e,c,r))continue;const i=gt(n,c);if(i){const o=new Map;mt(e,t,n,r,c.selectionSet,o,a,s),a.push({label:i.label,fields:o})}else mt(e,t,n,r,c.selectionSet,o,a,s);break}case u.a.FRAGMENT_SPREAD:{const i=c.name.value;if(!vt(n,c))continue;const l=gt(n,c);if(s.has(i)&&!l)continue;const u=t[i];if(!u||!yt(e,u,r))continue;if(s.add(i),l){const i=new Map;mt(e,t,n,r,u.selectionSet,i,a,s),a.push({label:l.label,fields:i})}else mt(e,t,n,r,u.selectionSet,o,a,s);break}}var l}function gt(e,t){const n=dt(le,t,e);if(n&&!1!==n.if)return{label:"string"==typeof n.label?n.label:void 0}}function vt(e,t){const n=dt(se,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=dt(ae,t,e);return!1!==(null==r?void 0:r.if)}function yt(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=Fe(e,r);return i===n||!!Object(Q.D)(i)&&e.isSubType(i,n)}function bt(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),l=Object.create(null);for(const e of a.definitions)e.kind===u.a.FRAGMENT_DEFINITION&&(l[e.name.value]=e);const{fields:c}=ht(n,l,o,r,t.selectionSet);if(c.size>1){const t=[...c.values()].slice(1).flat();e.reportError(new s.a(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",t))}for(const t of c.values()){t[0].name.value.startsWith("__")&&e.reportError(new s.a(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",t))}}}}}}function Tt(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const t of e.getDocument().definitions)Ke(t)&&(r[t.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,l,u){const c=t.name.value;if(!n[c]&&!r[c]){var f;const n=null!==(f=u[2])&&void 0!==f?f:a,r=null!=n&&("kind"in(d=n)&&(Ge(d)||ze(d)));if(r&&Et.includes(c))return;const o=Object(it.a)(c,r?Et.concat(i):i);e.reportError(new s.a(`Unknown type "${c}".`+Object(rt.a)(o),t))}var d}}}const Et=[...ne.g,...ee.introspectionTypes].map(e=>e.name);function _t(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=Fe(e.getSchema(),n);if(t&&!Object(Q.E)(t)){const t=Object(et.a)(n);e.reportError(new s.a(`Fragment cannot condition on non composite type "${t}".`,n))}}},FragmentDefinition(t){const n=Fe(e.getSchema(),t.typeCondition);if(n&&!Object(Q.E)(n)){const n=Object(et.a)(t.typeCondition);e.reportError(new s.a(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,t.typeCondition))}}}}function xt(e){return{VariableDefinition(t){const n=Fe(e.getSchema(),t.type);if(void 0!==n&&!Object(Q.H)(n)){const n=t.variable.name.value,r=Object(et.a)(t.type);e.reportError(new s.a(`Variable "$${n}" cannot be non-input type "${r}".`,t.type))}}}}function Ct(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(Object(Q.J)(Object(Q.B)(n))){if(r){const i=t.name.value,o=Object(d.a)(n);e.reportError(new s.a(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,r))}}else if(!r){const r=t.name.value,i=Object(d.a)(n);e.reportError(new s.a(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,t))}}}}var Ot=n(27);function St(e){return{Field(t){const n=e.getParentType();if(n){if(!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=Object(rt.a)("to use an inline fragment on",function(e,t,n){if(!Object(Q.D)(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const e of a.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:Object(Q.I)(t)&&e.isSubType(t,n)?-1:Object(Q.I)(n)&&e.isSubType(n,t)?1:Object(Ot.a)(t.name,n.name)}).map(e=>e.name)}(r,n,i));""===o&&(o=Object(rt.a)(function(e,t){if(Object(Q.O)(e)||Object(Q.I)(e)){const n=Object.keys(e.getFields());return Object(it.a)(t,n)}return[]}(n,i))),e.reportError(new s.a(`Cannot query field "${i}" on type "${n.name}".`+o,t))}}}}}function wt(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new s.a(`There can be only one fragment named "${r}".`,[t[r],n.name])):t[r]=n.name,!1}}}function kt(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new s.a(`Unknown fragment "${n}".`,t.name))}}}function Nt(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new s.a(`Fragment "${n}" is never used.`,t))}}}}}function Dt(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(Object(Q.E)(n)&&Object(Q.E)(r)&&!J(e.getSchema(),n,r)){const i=Object(d.a)(r),o=Object(d.a)(n);e.reportError(new s.a(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,t))}},FragmentSpread(t){const n=t.name.value,r=function(e,t){const n=e.getFragment(t);if(n){const t=Fe(e.getSchema(),n.typeCondition);if(Object(Q.E)(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!J(e.getSchema(),r,i)){const o=Object(d.a)(i),a=Object(d.a)(r);e.reportError(new s.a(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,t))}}}}function At(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>(function i(o){if(t[o.name.value])return;const a=o.name.value;t[a]=!0;const l=e.getFragmentSpreads(o.selectionSet);if(0===l.length)return;r[a]=n.length;for(const t of l){const o=t.name.value,a=r[o];if(n.push(t),void 0===a){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new s.a(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),t))}n.pop()}r[a]=void 0}(i),!1)}}function It(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function Lt(e){return{OperationDefinition(t){var n;const r=It(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new s.a(`There can be only one variable named "$${t}".`,n.map(e=>e.variable.name)))}}}function Rt(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new s.a(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,[i,n]))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function Ft(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const i of t){const t=i.variable.name.value;!0!==r[t]&&e.reportError(new s.a(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,i))}}},VariableDefinition(e){t.push(e)}}}function Mt(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():pe;for(const e of r)t[e.name]=e.locations;const i=e.getDocument().definitions;for(const e of i)e.kind===u.a.DIRECTIVE_DEFINITION&&(t[e.name.value]=e.locations.map(e=>e.value));return{Directive(n,r,i,o,a){const l=n.name.value,f=t[l];if(!f)return void e.reportError(new s.a(`Unknown directive "@${l}".`,n));const p=function(e){const t=e[e.length-1];switch("kind"in t||Object(Re.a)(!1),t.kind){case u.a.OPERATION_DEFINITION:return function(e){switch(e){case c.b.QUERY:return v.a.QUERY;case c.b.MUTATION:return v.a.MUTATION;case c.b.SUBSCRIPTION:return v.a.SUBSCRIPTION}Object(Re.a)(!1,"Unexpected operation: "+Object(d.a)(e))}(t.operation);case u.a.FIELD:return v.a.FIELD;case u.a.FRAGMENT_SPREAD:return v.a.FRAGMENT_SPREAD;case u.a.INLINE_FRAGMENT:return v.a.INLINE_FRAGMENT;case u.a.FRAGMENT_DEFINITION:return v.a.FRAGMENT_DEFINITION;case u.a.VARIABLE_DEFINITION:return v.a.VARIABLE_DEFINITION;case u.a.SCHEMA_DEFINITION:case u.a.SCHEMA_EXTENSION:return v.a.SCHEMA;case u.a.SCALAR_TYPE_DEFINITION:case u.a.SCALAR_TYPE_EXTENSION:return v.a.SCALAR;case u.a.OBJECT_TYPE_DEFINITION:case u.a.OBJECT_TYPE_EXTENSION:return v.a.OBJECT;case u.a.FIELD_DEFINITION:return v.a.FIELD_DEFINITION;case u.a.INTERFACE_TYPE_DEFINITION:case u.a.INTERFACE_TYPE_EXTENSION:return v.a.INTERFACE;case u.a.UNION_TYPE_DEFINITION:case u.a.UNION_TYPE_EXTENSION:return v.a.UNION;case u.a.ENUM_TYPE_DEFINITION:case u.a.ENUM_TYPE_EXTENSION:return v.a.ENUM;case u.a.ENUM_VALUE_DEFINITION:return v.a.ENUM_VALUE;case u.a.INPUT_OBJECT_TYPE_DEFINITION:case u.a.INPUT_OBJECT_TYPE_EXTENSION:return v.a.INPUT_OBJECT;case u.a.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||Object(Re.a)(!1),t.kind===u.a.INPUT_OBJECT_TYPE_DEFINITION?v.a.INPUT_FIELD_DEFINITION:v.a.ARGUMENT_DEFINITION}}}(a);p&&!f.includes(p)&&e.reportError(new s.a(`Directive "@${l}" may not be used on ${p}.`,n))}}}function jt(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():pe;for(const e of r)t[e.name]=!e.isRepeatable;const i=e.getDocument().definitions;for(const e of i)e.kind===u.a.DIRECTIVE_DEFINITION&&(t[e.name.value]=!e.repeatable);const o=Object.create(null),a=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===u.a.SCHEMA_DEFINITION||n.kind===u.a.SCHEMA_EXTENSION)r=o;else if(Ke(n)||Qe(n)){const e=n.name.value;r=a[e],void 0===r&&(a[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new s.a(`The directive "@${n}" can only be used once at this location.`,[r[n],i])):r[n]=i)}}}}function Pt(e){return{...Vt(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=r.args.map(e=>e.name),a=Object(it.a)(n,o);e.reportError(new s.a(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+Object(rt.a)(a),t))}}}}function Vt(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():pe;for(const e of r)t[e.name]=e.args.map(e=>e.name);const i=e.getDocument().definitions;for(const e of i)if(e.kind===u.a.DIRECTIVE_DEFINITION){var o;const n=null!==(o=e.arguments)&&void 0!==o?o:[];t[e.name.value]=n.map(e=>e.name.value)}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=Object(it.a)(n,i);e.reportError(new s.a(`Unknown argument "${n}" on directive "@${r}".`+Object(rt.a)(o),t))}}return!1}}}function Ut(e){return{Field:t,Directive:t};function t(t){var n;const r=It(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value);for(const[t,n]of r)n.length>1&&e.reportError(new s.a(`There can be only one argument named "${t}".`,n.map(e=>e.name)))}}function Bt(e){return{ListValue(t){const n=Object(Q.C)(e.getParentInputType());if(!Object(Q.K)(n))return $t(e,t),!1},ObjectValue(t){const n=Object(Q.B)(e.getInputType());if(!Object(Q.G)(n))return $t(e,t),!1;const r=Object(Xe.a)(t.fields,e=>e.name.value);for(const i of Object.values(n.getFields())){if(!r[i.name]&&Object(Q.R)(i)){const r=Object(d.a)(i.type);e.reportError(new s.a(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,t))}}},ObjectField(t){const n=Object(Q.B)(e.getParentInputType());if(!e.getInputType()&&Object(Q.G)(n)){const r=Object(it.a)(t.name.value,Object.keys(n.getFields()));e.reportError(new s.a(`Field "${t.name.value}" is not defined by type "${n.name}".`+Object(rt.a)(r),t))}},NullValue(t){const n=e.getInputType();Object(Q.M)(n)&&e.reportError(new s.a(`Expected value of type "${Object(d.a)(n)}", found ${Object(et.a)(t)}.`,t))},EnumValue:t=>$t(e,t),IntValue:t=>$t(e,t),FloatValue:t=>$t(e,t),StringValue:t=>$t(e,t),BooleanValue:t=>$t(e,t)}}function $t(e,t){const n=e.getInputType();if(!n)return;const r=Object(Q.B)(n);if(Object(Q.J)(r))try{if(void 0===r.parseLiteral(t,void 0)){const r=Object(d.a)(n);e.reportError(new s.a(`Expected value of type "${r}", found ${Object(et.a)(t)}.`,t))}}catch(r){const i=Object(d.a)(n);r instanceof s.a?e.reportError(r):e.reportError(new s.a(`Expected value of type "${i}", found ${Object(et.a)(t)}; `+r.message,t,void 0,void 0,void 0,r))}else{const r=Object(d.a)(n);e.reportError(new s.a(`Expected value of type "${r}", found ${Object(et.a)(t)}.`,t))}}function Ht(e){return{...qt(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const n of r.args)if(!i.has(n.name)&&Object(Q.Q)(n)){const i=Object(d.a)(n.type);e.reportError(new s.a(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,t))}}}}}function qt(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:pe;for(const e of i)n[e.name]=Object(Xe.a)(e.args.filter(Q.Q),e=>e.name);const o=e.getDocument().definitions;for(const e of o)if(e.kind===u.a.DIRECTIVE_DEFINITION){var a;const t=null!==(a=e.arguments)&&void 0!==a?a:[];n[e.name.value]=Object(Xe.a)(t.filter(Gt),e=>e.name.value)}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],a=new Set(n.map(e=>e.name.value));for(const[n,o]of Object.entries(i))if(!a.has(n)){const i=Object(Q.T)(o.type)?Object(d.a)(o.type):Object(et.a)(o.type);e.reportError(new s.a(`Directive "@${r}" argument "${n}" of type "${i}" is required, but it was not provided.`,t))}}}}}}function Gt(e){return e.type.kind===u.a.NON_NULL_TYPE&&null==e.defaultValue}function Kt(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:n,type:i,defaultValue:o}of r){const r=n.name.value,a=t[r];if(a&&i){const t=e.getSchema(),l=Fe(t,a.type);if(l&&!zt(t,l,a.defaultValue,i,o)){const t=Object(d.a)(l),o=Object(d.a)(i);e.reportError(new s.a(`Variable "$${r}" of type "${t}" used in position expecting type "${o}".`,[a,n]))}}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function zt(e,t,n,r,i){if(Object(Q.M)(r)&&!Object(Q.M)(t)){const o=void 0!==i;if(!(null!=n&&n.kind!==u.a.NULL)&&!o)return!1;return Y(e,t,r.ofType)}return Y(e,t,r)}function Qt(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+Qt(t)).join(" and "):e}function Wt(e){const t=new an,n=new Map;return{SelectionSet(r){const i=function(e,t,n,r,i){const o=[],[a,s]=rn(e,t,r,i);if(function(e,t,n,r,i){for(const[o,a]of Object.entries(i))if(a.length>1)for(let i=0;i<a.length;i++)for(let s=i+1;s<a.length;s++){const l=Zt(e,n,r,!1,o,a[i],a[s]);l&&t.push(l)}}(e,o,t,n,a),0!==s.length)for(let r=0;r<s.length;r++){Yt(e,o,t,n,!1,a,s[r]);for(let i=r+1;i<s.length;i++)Jt(e,o,t,n,!1,s[r],s[i])}return o}(e,n,t,e.getParentType(),r);for(const[[t,n],r,o]of i){const i=Qt(n);e.reportError(new s.a(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,r.concat(o)))}}}}function Yt(e,t,n,r,i,o,a){const s=e.getFragment(a);if(!s)return;const[l,u]=on(e,n,s);if(o!==l){Xt(e,t,n,r,i,o,l);for(const a of u)Yt(e,t,n,r,i,o,a)}}function Jt(e,t,n,r,i,o,a){if(o===a)return;if(r.has(o,a,i))return;r.add(o,a,i);const s=e.getFragment(o),l=e.getFragment(a);if(!s||!l)return;const[u,c]=on(e,n,s),[f,d]=on(e,n,l);Xt(e,t,n,r,i,u,f);for(const a of d)Jt(e,t,n,r,i,o,a);for(const o of c)Jt(e,t,n,r,i,o,a)}function Xt(e,t,n,r,i,o,a){for(const[s,l]of Object.entries(o)){const o=a[s];if(o)for(const a of l)for(const l of o){const o=Zt(e,n,r,i,s,a,l);o&&t.push(o)}}}function Zt(e,t,n,r,i,o,a){const[s,l,u]=o,[c,f,p]=a,h=r||s!==c&&Object(Q.O)(s)&&Object(Q.O)(c);if(!h){var m,g,v,y;const e=l.name.value,t=f.name.value;if(e!==t)return[[i,`"${e}" and "${t}" are different fields`],[l],[f]];if(!function(e,t){if(e.length!==t.length)return!1;return e.every(e=>{const n=t.find(t=>t.name.value===e.name.value);return!!n&&nn(e.value,n.value)})}(null!==(m=l.arguments)&&void 0!==m?m:[],null!==(g=f.arguments)&&void 0!==g?g:[]))return[[i,"they have differing arguments"],[l],[f]];if(!function(e,t){const n=tn(e),r=tn(t);if(!n&&!r)return!0;if(n&&r)return en(n,r,"initialCount")&&en(n,r,"label");return!1}(null!==(v=l.directives)&&void 0!==v?v:[],null!==(y=f.directives)&&void 0!==y?y:[]))return[[i,"they have differing stream directives"],[l],[f]]}const b=null==u?void 0:u.type,T=null==p?void 0:p.type;if(b&&T&&function e(t,n){if(Object(Q.K)(t))return!Object(Q.K)(n)||e(t.ofType,n.ofType);if(Object(Q.K)(n))return!0;if(Object(Q.M)(t))return!Object(Q.M)(n)||e(t.ofType,n.ofType);if(Object(Q.M)(n))return!0;if(Object(Q.J)(t)||Object(Q.J)(n))return t!==n;return!1}(b,T))return[[i,`they return conflicting types "${Object(d.a)(b)}" and "${Object(d.a)(T)}"`],[l],[f]];const E=l.selectionSet,_=f.selectionSet;if(E&&_){return function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(function(e,t,n,r,i,o,a,s){const l=[],[u,c]=rn(e,t,i,o),[f,d]=rn(e,t,a,s);Xt(e,l,t,n,r,u,f);for(const i of d)Yt(e,l,t,n,r,u,i);for(const i of c)Yt(e,l,t,n,r,f,i);for(const i of c)for(const o of d)Jt(e,l,t,n,r,i,o);return l}(e,t,n,h,Object(Q.B)(b),E,Object(Q.B)(T),_),i,l,f)}}function en(e,t,n){var r,i;const o=(null!==(r=e.arguments)&&void 0!==r?r:[]).find(e=>e.name.value===n);if(!o)return!1;const a=(null!==(i=t.arguments)&&void 0!==i?i:[]).find(e=>e.name.value===n);return!!a&&nn(o.value,a.value)}function tn(e){return e.find(e=>"stream"===e.name.value)}function nn(e,t){return Object(et.a)(e)===Object(et.a)(t)}function rn(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(const a of r.selections)switch(a.kind){case u.a.FIELD:{const e=a.name.value;let t;(Object(Q.O)(n)||Object(Q.I)(n))&&(t=n.getFields()[e]);const r=a.alias?a.alias.value:e;i[r]||(i[r]=[]),i[r].push([n,a,t]);break}case u.a.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case u.a.INLINE_FRAGMENT:{const r=a.typeCondition,s=r?Fe(t.getSchema(),r):n;e(t,s,a.selectionSet,i,o);break}}}(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function on(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=Fe(e.getSchema(),n.typeCondition);return rn(e,t,i,n.selectionSet)}class an{constructor(){this._data=new Map}has(e,t,n){var r;const[i,o]=e<t?[e,t]:[t,e],a=null===(r=this._data.get(i))||void 0===r?void 0:r.get(o);return void 0!==a&&(!!n||n===a)}add(e,t,n){const[r,i]=e<t?[e,t]:[t,e],o=this._data.get(r);void 0===o?this._data.set(r,new Map([[i,n]])):o.set(i,n)}}function sn(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||Object(Re.a)(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new s.a(`There can be only one input field named "${r}".`,[n[r],t.name])):n[r]=t.name}}}function ln(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let a=0;return{SchemaDefinition(t){o?e.reportError(new s.a("Cannot define a new schema within a schema extension.",t)):(a>0&&e.reportError(new s.a("Must provide only one schema definition.",t)),++a)}}}function un(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const t of o){const i=t.operation,o=n[i];r[i]?e.reportError(new s.a(`Type for ${i} already defined in the schema. It cannot be redefined.`,t)):o?e.reportError(new s.a(`There can be only one ${i} type in schema.`,[o,t])):n[i]=t}return!1}}function cn(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new s.a(`There can be only one type named "${i}".`,[t[i],r.name])):t[i]=r.name,!1;e.reportError(new s.a(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,r.name))}}function fn(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.values)&&void 0!==i?i:[],l=r[o];for(const t of a){const r=t.name.value,i=n[o];Object(Q.F)(i)&&i.getValue(r)?e.reportError(new s.a(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,t.name)):l[r]?e.reportError(new s.a(`Enum value "${o}.${r}" can only be defined once.`,[l[r],t.name])):l[r]=t.name}return!1}}function dn(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.fields)&&void 0!==i?i:[],l=r[o];for(const t of a){const r=t.name.value;pn(n[o],r)?e.reportError(new s.a(`Field "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,t.name)):l[r]?e.reportError(new s.a(`Field "${o}.${r}" can only be defined once.`,[l[r],t.name])):l[r]=t.name}return!1}}function pn(e,t){return!!(Object(Q.O)(e)||Object(Q.I)(e)||Object(Q.G)(e))&&null!=e.getFields()[t]}function hn(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n("@"+e.name.value,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const e of i){var o;n(`${r}.${e.name.value}`,null!==(o=e.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=It(n,e=>e.name.value);for(const[n,i]of r)i.length>1&&e.reportError(new s.a(`Argument "${t}(${n}:)" can only be defined once.`,i.map(e=>e.name)));return!1}}function mn(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new s.a(`There can be only one directive named "@${i}".`,[t[i],r.name])):t[i]=r.name,!1;e.reportError(new s.a(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,r.name))}}}function gn(e){const t=e.getSchema(),n=Object.create(null);for(const t of e.getDocument().definitions)Ke(t)&&(n[t.name.value]=t);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],a=null==t?void 0:t.getType(i);let l;if(o?l=vn[o.kind]:a&&(l=function(e){if(Object(Q.S)(e))return u.a.SCALAR_TYPE_EXTENSION;if(Object(Q.O)(e))return u.a.OBJECT_TYPE_EXTENSION;if(Object(Q.I)(e))return u.a.INTERFACE_TYPE_EXTENSION;if(Object(Q.U)(e))return u.a.UNION_TYPE_EXTENSION;if(Object(Q.F)(e))return u.a.ENUM_TYPE_EXTENSION;if(Object(Q.G)(e))return u.a.INPUT_OBJECT_TYPE_EXTENSION;Object(Re.a)(!1,"Unexpected type: "+Object(d.a)(e))}(a)),l){if(l!==r.kind){const t=function(e){switch(e){case u.a.SCALAR_TYPE_EXTENSION:return"scalar";case u.a.OBJECT_TYPE_EXTENSION:return"object";case u.a.INTERFACE_TYPE_EXTENSION:return"interface";case u.a.UNION_TYPE_EXTENSION:return"union";case u.a.ENUM_TYPE_EXTENSION:return"enum";case u.a.INPUT_OBJECT_TYPE_EXTENSION:return"input object"}Object(Re.a)(!1,"Unexpected kind: "+Object(d.a)(e))}(r.kind);e.reportError(new s.a(`Cannot extend non-${t} type "${i}".`,o?[o,r]:r))}}else{const o=Object.keys({...n,...null==t?void 0:t.getTypeMap()}),a=Object(it.a)(i,o);e.reportError(new s.a(`Cannot extend type "${i}" because it is not defined.`+Object(rt.a)(a),r.name))}}}const vn={[u.a.SCALAR_TYPE_DEFINITION]:u.a.SCALAR_TYPE_EXTENSION,[u.a.OBJECT_TYPE_DEFINITION]:u.a.OBJECT_TYPE_EXTENSION,[u.a.INTERFACE_TYPE_DEFINITION]:u.a.INTERFACE_TYPE_EXTENSION,[u.a.UNION_TYPE_DEFINITION]:u.a.UNION_TYPE_EXTENSION,[u.a.ENUM_TYPE_DEFINITION]:u.a.ENUM_TYPE_EXTENSION,[u.a.INPUT_OBJECT_TYPE_DEFINITION]:u.a.INPUT_OBJECT_TYPE_EXTENSION};const yn=Object.freeze([We,Ye,Je,bt,Tt,_t,xt,Ct,St,wt,kt,Nt,Dt,At,Lt,Rt,Ft,Mt,jt,function(e){return{Directive(t){const n=e.getFieldDef(),r=e.getParentType();n&&r&&t.name.value===ue.name&&!Object(Q.K)(n.type)&&e.reportError(new s.a(`Stream directive cannot be used on non-list field "${n.name}" on type "${r.name}".`,t))}}},Pt,Ut,Bt,Ht,Kt,Wt,sn]),bn=Object.freeze([ln,un,cn,fn,dn,hn,mn,Tt,Mt,jt,gn,Vt,Ut,sn,qt]);class Tn{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===u.a.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===u.a.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class En extends Tn{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class _n extends Tn{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new Me(this._schema);Object(z.d)(e,Pe(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function xn(e,t,n=yn,r,i=new Me(e)){var o;const a=null!==(o=null==r?void 0:r.maxErrors)&&void 0!==o?o:100;t||Object(p.a)(!1,"Must provide document."),Te(e);const l=Object.freeze({}),u=[],c=new _n(e,t,i,e=>{if(u.length>=a)throw u.push(new s.a("Too many validation errors, error limit reached. Validation aborted.")),l;u.push(e)}),f=Object(z.e)(n.map(e=>e(c)));try{Object(z.d)(t,Pe(i,f))}catch(e){if(e!==l)throw e}return u}function Cn(e,t,n=bn){const r=[],i=new En(e,t,e=>{r.push(e)}),o=n.map(e=>e(i));return Object(z.d)(e,Object(z.e)(o)),r}function On(e,t,n){var r;const i=e instanceof Error?e:new Error("Unexpected error value: "+Object(d.a)(e));return o=i,Array.isArray(o.path)?i:new s.a(i.message,null!==(r=i.nodes)&&void 0!==r?r:t,i.source,i.positions,n,i);var o}const Sn=function(e){let t;return function(n,r,i){void 0===t&&(t=new WeakMap);let o=t.get(n);void 0===o&&(o=new WeakMap,t.set(n,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(i);return void 0===s&&(s=e(n,r,i),a.set(i,s)),s}}((e,t,n)=>function(e,t,n,r,i){const o=new Map,a=new Set,s=[],l={fields:o,patches:s};for(const l of i)l.selectionSet&&mt(e,t,n,r,l.selectionSet,o,s,a);return l}(e.schema,e.fragments,e.variableValues,t,n));function wn(e){const{schema:t,document:n,variableValues:r,rootValue:i}=e;Dn(t,n,r);const a=An(e);if(!("schema"in a))return{errors:a};try{const{operation:e}=a,t=function(e,t,n){const r=e.schema.getRootType(t.operation);if(null==r)throw new s.a(`Schema is not configured to execute ${t.operation} operation.`,t);const{fields:i,patches:a}=ht(e.schema,e.fragments,e.variableValues,r,t.selectionSet);let l;switch(t.operation){case c.b.QUERY:l=In(e,r,n,void 0,i,e.errors);break;case c.b.MUTATION:l=function(e,t,n,r,i){return function(e,t,n){let r=n;for(const n of e)r=o(r)?r.then(e=>t(e,n)):t(r,n);return r}(i.entries(),(i,[a,s])=>{const l=ot(r,a,t.name),u=Ln(e,t,n,s,l,e.errors);return void 0===u?i:o(u)?u.then(e=>(i[a]=e,i)):(i[a]=u,i)},Object.create(null))}(e,r,n,void 0,i);break;case c.b.SUBSCRIPTION:l=In(e,r,n,void 0,i,e.errors)}for(const t of a){const{label:i,fields:o}=t,a=[];e.dispatcher.addFields(In(e,r,n,void 0,o,e.errors),a,i,void 0)}return l}(a,e,i);if(o(t))return t.then(e=>{const t=Nn(e,a.errors);return a.dispatcher.hasSubsequentPayloads()?a.dispatcher.get(t):t},e=>(a.errors.push(e),Nn(null,a.errors)));const n=Nn(t,a.errors);return a.dispatcher.hasSubsequentPayloads()?a.dispatcher.get(n):n}catch(e){return a.errors.push(e),Nn(null,a.errors)}}function kn(e){const t=wn(e);if(o(t)||a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Nn(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function Dn(e,t,n){t||Object(p.a)(!1,"Must provide document."),Te(e),null==n||Object(Z.a)(n)||Object(p.a)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function An(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:a,variableValues:l,operationName:c,fieldResolver:f,typeResolver:d,subscribeFieldResolver:p}=e;let h;const m=Object.create(null);for(const e of i.definitions)switch(e.kind){case u.a.OPERATION_DEFINITION:if(null==c){if(void 0!==h)return[new s.a("Must provide operation name if query contains multiple operations.")];h=e}else(null===(t=e.name)||void 0===t?void 0:t.value)===c&&(h=e);break;case u.a.FRAGMENT_DEFINITION:m[e.name.value]=e}if(!h)return null!=c?[new s.a(`Unknown operation named "${c}".`)]:[new s.a("Must provide an operation.")];const g=ct(r,null!==(n=h.variableDefinitions)&&void 0!==n?n:[],null!=l?l:{},{maxErrors:50});return g.errors?g.errors:{schema:r,fragments:m,rootValue:o,contextValue:a,operation:h,variableValues:g.coerced,fieldResolver:null!=f?f:Hn,typeResolver:null!=d?d:$n,subscribeFieldResolver:null!=p?p:Hn,dispatcher:new Gn,errors:[]}}function In(e,t,n,r,i,a){const s=Object.create(null);let l=!1;for(const[u,c]of i.entries()){const i=Ln(e,t,n,c,ot(r,u,t.name),a);void 0!==i&&(s[u]=i,o(i)&&(l=!0))}return l?(u=s,Promise.all(Object.values(u)).then(e=>{const t=Object.create(null);for(const[n,r]of Object.keys(u).entries())t[r]=e[n];return t})):s;var u}function Ln(e,t,n,r,i,a){var s;const l=qn(e.schema,t,r[0]);if(!l)return;const u=l.type,c=null!==(s=l.resolve)&&void 0!==s?s:e.fieldResolver,f=Rn(e,l,r,t,i);try{const t=ft(l,r[0],e.variableValues),s=c(n,t,e.contextValue,f);let d;return d=o(s)?s.then(t=>Mn(e,u,r,f,i,t,a)):Mn(e,u,r,f,i,s,a),o(d)?d.then(void 0,e=>Fn(On(e,r,at(i)),u,a)):d}catch(e){return Fn(On(e,r,at(i)),u,a)}}function Rn(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function Fn(e,t,n){if(Object(Q.M)(t))throw e;return n.push(e),null}function Mn(e,t,n,r,i,l,u){if(l instanceof Error)throw l;if(Object(Q.M)(t)){const o=Mn(e,t.ofType,n,r,i,l,u);if(null===o)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}return null==l?null:Object(Q.K)(t)?function(e,t,n,r,i,l,u){const c=t.ofType;if(a(l)){const t=l[Symbol.asyncIterator]();return function(e,t,n,r,i,a,s){let l=!1;const u=jn(e,n);return new Promise(c=>{!function f(d,p){if(u&&"number"==typeof u.initialCount&&d>=u.initialCount)return e.dispatcher.addAsyncIteratorValue(d,a,e,n,r,t,i,u.label),void c(p);const h=ot(i,d,void 0);a.next().then(({value:i,done:a})=>{if(a)c(p);else{try{const a=Mn(e,t,n,r,h,i,s);o(a)&&(l=!0),p.push(a)}catch(e){p.push(null);Fn(On(e,n,at(h)),t,s),c(p)}f(d+1,p)}},e=>{p.push(null);Fn(On(e,n,at(h)),t,s),c(p)})}(0,[])}).then(e=>l?Promise.all(e):e)}(e,c,n,r,i,t,u)}if(!Object(st.a)(l))throw new s.a(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const f=jn(e,n);let d=!1;const p=[];let h=0;for(const t of l){const a=ot(i,h,void 0);try{let i;if(f&&"number"==typeof f.initialCount&&h>=f.initialCount){e.dispatcher.addValue(a,t,e,n,r,c,f.label),h++;continue}i=o(t)?t.then(t=>Mn(e,c,n,r,a,t,u)):Mn(e,c,n,r,a,t,u),o(i)?(d=!0,p.push(i.then(void 0,e=>Fn(On(e,n,at(a)),c,u)))):p.push(i)}catch(e){const t=On(e,n,at(a));p.push(Fn(t,c,u))}h++}return d?Promise.all(p):p}(e,t,n,r,i,l,u):Object(Q.J)(t)?function(e,t){const n=e.serialize(t);if(null==n)throw new Error(`Expected \`${Object(d.a)(e)}.serialize(${Object(d.a)(t)})\` to return non-nullable value, returned: `+Object(d.a)(n));return n}(t,l):Object(Q.D)(t)?function(e,t,n,r,i,a,s){var l;const u=null!==(l=t.resolveType)&&void 0!==l?l:e.typeResolver,c=e.contextValue,f=u(a,c,r,t);if(o(f))return f.then(o=>Vn(e,Pn(o,e,t,n,r,a),n,r,i,a,s));return Vn(e,Pn(f,e,t,n,r,a),n,r,i,a,s)}(e,t,n,r,i,l,u):Object(Q.O)(t)?Vn(e,t,n,r,i,l,u):void Object(Re.a)(!1,"Cannot complete value of unexpected output type: "+Object(d.a)(t))}function jn(e,t){const n=dt(ue,t[0],e.variableValues);if(n&&!1!==n.if)return{initialCount:"number"==typeof n.initialCount?n.initialCount:void 0,label:"string"==typeof n.label?n.label:void 0}}function Pn(e,t,n,r,i,o){if(null==e)throw new s.a(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(Object(Q.O)(e))throw new s.a("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new s.a(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${Object(d.a)(o)}, received "${Object(d.a)(e)}".`);const a=t.schema.getType(e);if(null==a)throw new s.a(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,r);if(!Object(Q.O)(a))throw new s.a(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,r);if(!t.schema.isSubType(n,a))throw new s.a(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,r);return a}function Vn(e,t,n,r,i,a,s){if(t.isTypeOf){const l=t.isTypeOf(a,e.contextValue,r);if(o(l))return l.then(r=>{if(!r)throw Un(t,a,n);return Bn(e,t,n,i,a,s)});if(!l)throw Un(t,a,n)}return Bn(e,t,n,i,a,s)}function Un(e,t,n){return new s.a(`Expected value of type "${e.name}" but got: ${Object(d.a)(t)}.`,n)}function Bn(e,t,n,r,i,o){const{fields:a,patches:s}=Sn(e,t,n),l=In(e,t,i,r,a,o);for(const n of s){const{label:o,fields:a}=n,s=[];e.dispatcher.addFields(In(e,t,i,r,a,s),s,o,r)}return l}const $n=function(e,t,n,r){if(Object(Z.a)(e)&&"string"==typeof e.__typename)return e.__typename;const i=n.schema.getPossibleTypes(r),a=[];for(let r=0;r<i.length;r++){const s=i[r];if(s.isTypeOf){const i=s.isTypeOf(e,t,n);if(o(i))a[r]=i;else if(i)return s.name}}return a.length?Promise.all(a).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name}):void 0},Hn=function(e,t,n,r){if(Object(Z.a)(e)||"function"==typeof e){const i=e[r.fieldName];return"function"==typeof i?e[r.fieldName](t,n,r):i}};function qn(e,t,n){const r=n.name.value;return r===ee.SchemaMetaFieldDef.name&&e.getQueryType()===t?ee.SchemaMetaFieldDef:r===ee.TypeMetaFieldDef.name&&e.getQueryType()===t?ee.TypeMetaFieldDef:r===ee.TypeNameMetaFieldDef.name?ee.TypeNameMetaFieldDef:t.getFields()[r]}class Gn{constructor(){this._subsequentPayloads=[],this._iterators=[],this._isDone=!1,this._hasReturnedInitialResult=!1}hasSubsequentPayloads(){return 0!==this._subsequentPayloads.length}addFields(e,t,n,r){this._subsequentPayloads.push(Promise.resolve(e).then(e=>({value:Kn(e,n,r,t),done:!1})))}addValue(e,t,n,r,i,o,a){const s=[];this._subsequentPayloads.push(Promise.resolve(t).then(t=>Mn(n,o,r,i,e,t,s)).then(void 0,t=>Fn(On(t,r,at(e)),o,s)).then(t=>({value:Kn(t,a,e,s),done:!1})))}addAsyncIteratorValue(e,t,n,r,i,a,s,l){const u=this._subsequentPayloads,c=this._iterators;c.push(t),function e(f){const d=ot(s,f,void 0),p=[];u.push(t.next().then(({value:s,done:u})=>{if(u)return c.splice(c.indexOf(t),1),{value:void 0,done:!0};e(f+1);try{const e=Mn(n,a,r,i,d,s,p);return o(e)?e.then(e=>({value:Kn(e,l,d,p),done:!1})):{value:Kn(e,l,d,p),done:!1}}catch(e){return Fn(On(e,r,at(d)),a,p),{value:Kn(null,l,d,p),done:!1}}},e=>(Fn(On(e,r,at(d)),a,p),{value:Kn(null,l,d,p),done:!1})))}(e)}_race(){return this._isDone?Promise.resolve({value:{hasNext:!1},done:!1}):new Promise(e=>{let t=!1;this._subsequentPayloads.forEach(n=>{n.then(r=>{if(t)return;if(t=!0,0===this._subsequentPayloads.length)return void e({value:void 0,done:!0});const i=this._subsequentPayloads.indexOf(n);if(-1===i)return void e(this._race());this._subsequentPayloads.splice(i,1);const{value:o,done:a}=r;if(a&&0===this._subsequentPayloads.length)return void e({value:{hasNext:!1},done:!1});if(a)return void e(this._race());const s={...o,hasNext:this._subsequentPayloads.length>0};e({value:s,done:!1})})})})}_next(){return this._hasReturnedInitialResult?0===this._subsequentPayloads.length?Promise.resolve({value:void 0,done:!0}):this._race():(this._hasReturnedInitialResult=!0,Promise.resolve({value:{...this._initialResult,hasNext:!0},done:!1}))}async _return(){return await Promise.all(this._iterators.map(e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)})),this._isDone=!0,{value:void 0,done:!0}}async _throw(e){return await Promise.all(this._iterators.map(e=>{var t;return null===(t=e.return)||void 0===t?void 0:t.call(e)})),this._isDone=!0,Promise.reject(e)}get(e){return this._initialResult=e,{[Symbol.asyncIterator](){return this},next:()=>this._next(),return:()=>this._return(),throw:e=>this._throw(e)}}}function Kn(e,t,n,r){const i={data:e,path:n?at(n):[]};return null!=t&&(i.label=t),r&&r.length>0&&(i.errors=r),i}function zn(e){return new Promise(t=>t(Wn(e)))}function Qn(e){const t=Wn(e);if(o(t)||a(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Wn(e){const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:o,operationName:a,fieldResolver:s,typeResolver:l}=e,u=be(t);if(u.length>0)return{errors:u};let c;try{c=U(n)}catch(e){return{errors:[e]}}const f=xn(t,c);return f.length>0?{errors:f}:wn({schema:t,document:c,rootValue:r,contextValue:i,variableValues:o,operationName:a,fieldResolver:s,typeResolver:l})}var Yn=n(35),Jn=n(58);async function Xn(e){const{schema:t,document:n,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,subscribeFieldResolver:u}=e,c=await Zn(t,n,r,i,o,s,u);if(!a(c))return c;return function(e){const t=e[Symbol.asyncIterator].call(e);let n=[t];return{next:async function e(){const t=n[0];if(!t)return{value:void 0,done:!0};const r=await t.next();if(r.done)return n.shift(),e();if(a(r.value)){const t=r.value[Symbol.asyncIterator]();return n.unshift(t),e()}return r},return:()=>(n=[],t.return()),throw:e=>(n=[],t.throw(e)),[Symbol.asyncIterator](){return this}}}(function(e,t){const n=e[Symbol.asyncIterator]();async function r(e){if(e.done)return e;try{return{value:await t(e.value),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}(c,e=>wn({schema:t,document:n,rootValue:e,contextValue:i,variableValues:o,operationName:s,fieldResolver:l})))}async function Zn(e,t,n,r,i,o,l){Dn(e,t,i);const u=An({schema:e,document:t,rootValue:n,contextValue:r,variableValues:i,operationName:o,subscribeFieldResolver:l});if(!("schema"in u))return{errors:u};try{const e=await async function(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new s.a("Schema is not configured to execute subscription operation.",r);const{fields:l}=ht(t,n,i,a,r.selectionSet),[u,c]=[...l.entries()][0],f=qn(t,a,c[0]);if(!f){const e=c[0].name.value;throw new s.a(`The subscription field "${e}" is not defined.`,c)}const d=ot(void 0,u,a.name),p=Rn(e,f,c,a,d);try{var h;const t=ft(f,c[0],i),n=e.contextValue,r=null!==(h=f.subscribe)&&void 0!==h?h:e.subscribeFieldResolver,a=await r(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw On(e,c,at(d))}}(u);if(!a(e))throw new Error(`Subscription field must return Async Iterable. Received: ${Object(d.a)(e)}.`);return e}catch(e){if(e instanceof s.a)return{errors:[e]};throw e}}function er(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||Object(Re.a)(!1),e.reportError(new s.a(`The field ${i.name}.${n.name} is deprecated. ${r}`,t))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new s.a(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,t));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||Object(Re.a)(!1),e.reportError(new s.a(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,t))}}},ObjectField(t){const n=Object(Q.B)(e.getParentInputType());if(Object(Q.G)(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new s.a(`The input field ${n.name}.${r.name} is deprecated. ${i}`,t))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=Object(Q.B)(e.getInputType());null!=i||Object(Re.a)(!1),e.reportError(new s.a(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,t))}}}}function tr(e){return{Field(t){const n=Object(Q.B)(e.getType());n&&Object(ee.isIntrospectionType)(n)&&e.reportError(new s.a(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,t))}}}function nr(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return`\n    query IntrospectionQuery {\n      __schema {\n        ${t.schemaDescription?n:""}\n        queryType { name }\n        mutationType { name }\n        subscriptionType { name }\n        types {\n          ...FullType\n        }\n        directives {\n          name\n          ${n}\n          ${i}\n          locations\n          args${o("(includeDeprecated: true)")} {\n            ...InputValue\n          }\n        }\n      }\n    }\n\n    fragment FullType on __Type {\n      kind\n      name\n      ${n}\n      ${r}\n      fields(includeDeprecated: true) {\n        name\n        ${n}\n        args${o("(includeDeprecated: true)")} {\n          ...InputValue\n        }\n        type {\n          ...TypeRef\n        }\n        isDeprecated\n        deprecationReason\n      }\n      inputFields${o("(includeDeprecated: true)")} {\n        ...InputValue\n      }\n      interfaces {\n        ...TypeRef\n      }\n      enumValues(includeDeprecated: true) {\n        name\n        ${n}\n        isDeprecated\n        deprecationReason\n      }\n      possibleTypes {\n        ...TypeRef\n      }\n    }\n\n    fragment InputValue on __InputValue {\n      name\n      ${n}\n      type { ...TypeRef }\n      defaultValue\n      ${o("isDeprecated")}\n      ${o("deprecationReason")}\n    }\n\n    fragment TypeRef on __Type {\n      kind\n      name\n      ofType {\n        kind\n        name\n        ofType {\n          kind\n          name\n          ofType {\n            kind\n            name\n            ofType {\n              kind\n              name\n              ofType {\n                kind\n                name\n                ofType {\n                  kind\n                  name\n                  ofType {\n                    kind\n                    name\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  `}function rr(e,t){let n=null;for(const i of e.definitions){var r;if(i.kind===u.a.OPERATION_DEFINITION)if(null==t){if(n)return null;n=i}else if((null===(r=i.name)||void 0===r?void 0:r.value)===t)return i}return n}function ir(e,t){if("query"===t.operation){const n=e.getQueryType();if(!n)throw new s.a("Schema does not define the required query root type.",t);return n}if("mutation"===t.operation){const n=e.getMutationType();if(!n)throw new s.a("Schema is not configured for mutations.",t);return n}if("subscription"===t.operation){const n=e.getSubscriptionType();if(!n)throw new s.a("Schema is not configured for subscriptions.",t);return n}throw new s.a("Can only have query, mutation and subscription operations.",t)}function or(e,t){const n=kn({schema:e,document:U(nr({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t}))});return!n.errors&&n.data||Object(Re.a)(!1),n.data}var ar=n(23);function sr(e,t){Object(Z.a)(e)&&Object(Z.a)(e.__schema)||Object(p.a)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${Object(d.a)(e)}.`);const n=e.__schema,r=Object(ar.a)(n.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case ee.TypeKind.SCALAR:return r=e,new Q.g({name:r.name,description:r.description,specifiedByURL:r.specifiedByURL});case ee.TypeKind.OBJECT:return n=e,new Q.f({name:n.name,description:n.description,interfaces:()=>h(n),fields:()=>m(n)});case ee.TypeKind.INTERFACE:return t=e,new Q.c({name:t.name,description:t.description,interfaces:()=>h(t),fields:()=>m(t)});case ee.TypeKind.UNION:return function(e){if(!e.possibleTypes){const t=Object(d.a)(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Q.h({name:e.name,description:e.description,types:()=>e.possibleTypes.map(c)})}(e);case ee.TypeKind.ENUM:return function(e){if(!e.enumValues){const t=Object(d.a)(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new Q.a({name:e.name,description:e.description,values:Object(ar.a)(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case ee.TypeKind.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=Object(d.a)(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new Q.b({name:e.name,description:e.description,fields:()=>v(e.inputFields)})}(e)}var t;var n;var r;const i=Object(d.a)(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e));for(const e of[...ne.g,...ee.introspectionTypes])r[e.name]&&(r[e.name]=e);const i=n.queryType?c(n.queryType):null,o=n.mutationType?c(n.mutationType):null,a=n.subscriptionType?c(n.subscriptionType):null,s=n.directives?n.directives.map((function(e){if(!e.args){const t=Object(d.a)(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=Object(d.a)(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new oe({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:v(e.args)})})):[];return new ve({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===ee.TypeKind.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new Q.d(l(t))}if(e.kind===ee.TypeKind.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");const n=l(t);return new Q.e(Object(Q.t)(n))}return u(e)}function u(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${Object(d.a)(e)}.`);const n=r[t];if(!n)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function c(e){return Object(Q.u)(u(e))}function f(e){return Object(Q.o)(u(e))}function h(e){if(null===e.interfaces&&e.kind===ee.TypeKind.INTERFACE)return[];if(!e.interfaces){const t=Object(d.a)(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(f)}function m(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${Object(d.a)(e)}.`);return Object(ar.a)(e.fields,e=>e.name,g)}function g(e){const t=l(e.type);if(!Object(Q.P)(t)){const e=Object(d.a)(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=Object(d.a)(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:v(e.args)}}function v(e){return Object(ar.a)(e,e=>e.name,y)}function y(e){const t=l(e.type);if(!Object(Q.H)(t)){const e=Object(d.a)(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?tt(B(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}var lr=n(25);function ur(e,t,n){ge(e),null!=t&&t.kind===u.a.DOCUMENT||Object(p.a)(!1,"Must provide valid Document AST."),!0!==(null==n?void 0:n.assumeValid)&&!0!==(null==n?void 0:n.assumeValidSDL)&&function(e,t){const n=Cn(e,t);if(0!==n.length)throw new Error(n.map(e=>e.message).join("\n\n"))}(t,e);const r=e.toConfig(),i=cr(r,t,n);return r===i?e:new ve(i)}function cr(e,t,n){var r,i,o,a;const s=[],l=Object.create(null),c=[];let f;const p=[];for(const e of t.definitions)if(e.kind===u.a.SCHEMA_DEFINITION)f=e;else if(e.kind===u.a.SCHEMA_EXTENSION)p.push(e);else if(Ke(e))s.push(e);else if(Qe(e)){const t=e.name.value,n=l[t];l[t]=n?n.concat([e]):[e]}else e.kind===u.a.DIRECTIVE_DEFINITION&&c.push(e);if(0===Object.keys(l).length&&0===s.length&&0===c.length&&0===p.length&&null==f)return e;const h=Object.create(null);for(const t of e.types)h[t.name]=b(t);for(const e of s){var m;const t=e.name.value;h[t]=null!==(m=fr[t])&&void 0!==m?m:A(e)}const g={query:e.query&&y(e.query),mutation:e.mutation&&y(e.mutation),subscription:e.subscription&&y(e.subscription),...f&&_([f]),..._(p)};return{description:null===(r=f)||void 0===r||null===(i=r.description)||void 0===i?void 0:i.value,...g,types:Object.values(h),directives:[...e.directives.map((function(e){const t=e.toConfig();return new oe({...t,args:Object(lr.a)(t.args,E)})})),...c.map((function(e){var t;return new oe({name:e.name.value,description:null===(t=e.description)||void 0===t?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:S(e.arguments),astNode:e})}))],extensions:Object.create(null),astNode:null!==(o=f)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(p),assumeValid:null!==(a=null==n?void 0:n.assumeValid)&&void 0!==a&&a};function v(e){return Object(Q.K)(e)?new Q.d(v(e.ofType)):Object(Q.M)(e)?new Q.e(v(e.ofType)):y(e)}function y(e){return h[e.name]}function b(e){return Object(ee.isIntrospectionType)(e)||Object(ne.f)(e)?e:Object(Q.S)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];let i=n.specifiedByURL;for(const e of r){var o;i=null!==(o=pr(e))&&void 0!==o?o:i}return new Q.g({...n,specifiedByURL:i,extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Object(Q.O)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new Q.f({...n,interfaces:()=>[...e.getInterfaces().map(y),...N(r)],fields:()=>({...Object(lr.a)(n.fields,T),...O(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Object(Q.I)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new Q.c({...n,interfaces:()=>[...e.getInterfaces().map(y),...N(r)],fields:()=>({...Object(lr.a)(n.fields,T),...O(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Object(Q.U)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new Q.h({...n,types:()=>[...e.getTypes().map(y),...D(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Object(Q.F)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[e.name])&&void 0!==t?t:[];return new Q.a({...n,values:{...n.values,...k(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):Object(Q.G)(e)?function(e){var t;const n=e.toConfig(),r=null!==(t=l[n.name])&&void 0!==t?t:[];return new Q.b({...n,fields:()=>({...Object(lr.a)(n.fields,e=>({...e,type:v(e.type)})),...w(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(e):void Object(Re.a)(!1,"Unexpected type: "+Object(d.a)(e))}function T(e){return{...e,type:v(e.type),args:e.args&&Object(lr.a)(e.args,E)}}function E(e){return{...e,type:v(e.type)}}function _(e){const t={};for(const r of e){var n;const e=null!==(n=r.operationTypes)&&void 0!==n?n:[];for(const n of e)t[n.operation]=x(n.type)}return t}function x(e){var t;const n=e.name.value,r=null!==(t=fr[n])&&void 0!==t?t:h[n];if(void 0===r)throw new Error(`Unknown type: "${n}".`);return r}function C(e){return e.kind===u.a.LIST_TYPE?new Q.d(C(e.type)):e.kind===u.a.NON_NULL_TYPE?new Q.e(C(e.type)):x(e)}function O(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={type:C(n.type),description:null===(r=n.description)||void 0===r?void 0:r.value,args:S(n.arguments),deprecationReason:dr(n),astNode:n}}}return t}function S(e){const t=null!=e?e:[],n=Object.create(null);for(const e of t){var r;const t=C(e.type);n[e.name.value]={type:t,description:null===(r=e.description)||void 0===r?void 0:r.value,defaultValue:tt(e.defaultValue,t),deprecationReason:dr(e),astNode:e}}return n}function w(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.fields)&&void 0!==n?n:[];for(const n of e){var r;const e=C(n.type);t[n.name.value]={type:e,description:null===(r=n.description)||void 0===r?void 0:r.value,defaultValue:tt(n.defaultValue,e),deprecationReason:dr(n),astNode:n}}}return t}function k(e){const t=Object.create(null);for(const i of e){var n;const e=null!==(n=i.values)&&void 0!==n?n:[];for(const n of e){var r;t[n.name.value]={description:null===(r=n.description)||void 0===r?void 0:r.value,deprecationReason:dr(n),astNode:n}}}return t}function N(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.interfaces)||void 0===n?void 0:n.map(x))&&void 0!==t?t:[]})}function D(e){return e.flatMap(e=>{var t,n;return null!==(t=null===(n=e.types)||void 0===n?void 0:n.map(x))&&void 0!==t?t:[]})}function A(e){var t;const n=e.name.value,r=null!==(t=l[n])&&void 0!==t?t:[];switch(e.kind){case u.a.OBJECT_TYPE_DEFINITION:{var i;const t=[e,...r];return new Q.f({name:n,description:null===(i=e.description)||void 0===i?void 0:i.value,interfaces:()=>N(t),fields:()=>O(t),astNode:e,extensionASTNodes:r})}case u.a.INTERFACE_TYPE_DEFINITION:{var o;const t=[e,...r];return new Q.c({name:n,description:null===(o=e.description)||void 0===o?void 0:o.value,interfaces:()=>N(t),fields:()=>O(t),astNode:e,extensionASTNodes:r})}case u.a.ENUM_TYPE_DEFINITION:{var a;const t=[e,...r];return new Q.a({name:n,description:null===(a=e.description)||void 0===a?void 0:a.value,values:k(t),astNode:e,extensionASTNodes:r})}case u.a.UNION_TYPE_DEFINITION:{var s;const t=[e,...r];return new Q.h({name:n,description:null===(s=e.description)||void 0===s?void 0:s.value,types:()=>D(t),astNode:e,extensionASTNodes:r})}case u.a.SCALAR_TYPE_DEFINITION:var c;return new Q.g({name:n,description:null===(c=e.description)||void 0===c?void 0:c.value,specifiedByURL:pr(e),astNode:e,extensionASTNodes:r});case u.a.INPUT_OBJECT_TYPE_DEFINITION:{var f;const t=[e,...r];return new Q.b({name:n,description:null===(f=e.description)||void 0===f?void 0:f.value,fields:()=>w(t),astNode:e,extensionASTNodes:r})}}Object(Re.a)(!1,"Unexpected type definition node: "+Object(d.a)(e))}}const fr=Object(Xe.a)([...ne.g,...ee.introspectionTypes],e=>e.name);function dr(e){const t=dt(fe,e);return null==t?void 0:t.reason}function pr(e){const t=dt(de,e);return null==t?void 0:t.url}function hr(e,t){null!=e&&e.kind===u.a.DOCUMENT||Object(p.a)(!1,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&function(e){const t=Cn(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}(e);const n=cr({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(const e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}const r=[...n.directives,...pe.filter(e=>n.directives.every(t=>t.name!==e.name))];return new ve({...n,directives:r})}function mr(e,t){return hr(U(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function gr(e){const t=e.toConfig(),n=Object(ar.a)(yr(t.types),e=>e.name,(function(e){if(Object(Q.S)(e)||Object(ee.isIntrospectionType)(e))return e;if(Object(Q.O)(e)){const t=e.toConfig();return new Q.f({...t,interfaces:()=>l(t.interfaces),fields:()=>s(t.fields)})}if(Object(Q.I)(e)){const t=e.toConfig();return new Q.c({...t,interfaces:()=>l(t.interfaces),fields:()=>s(t.fields)})}if(Object(Q.U)(e)){const t=e.toConfig();return new Q.h({...t,types:()=>l(t.types)})}if(Object(Q.F)(e)){const t=e.toConfig();return new Q.a({...t,values:vr(t.values,e=>e)})}if(Object(Q.G)(e)){const t=e.toConfig();return new Q.b({...t,fields:()=>vr(t.fields,e=>({...e,type:r(e.type)}))})}Object(Re.a)(!1,"Unexpected type: "+Object(d.a)(e))}));return new ve({...t,types:Object.values(n),directives:yr(t.directives).map((function(e){const t=e.toConfig();return new oe({...t,locations:br(t.locations,e=>e),args:a(t.args)})})),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(e){return Object(Q.K)(e)?new Q.d(r(e.ofType)):Object(Q.M)(e)?new Q.e(r(e.ofType)):i(e)}function i(e){return n[e.name]}function o(e){return e&&i(e)}function a(e){return vr(e,e=>({...e,type:r(e.type)}))}function s(e){return vr(e,e=>({...e,type:r(e.type),args:e.args&&a(e.args)}))}function l(e){return yr(e).map(i)}}function vr(e,t){const n=Object.create(null),r=br(Object.entries(e),([e])=>e);for(const[e,i]of r)n[e]=t(i);return n}function yr(e){return br(e,e=>e.name)}function br(e,t){return e.slice().sort((e,n)=>{const r=t(e),i=t(n);return Object(Ot.a)(r,i)})}var Tr=n(32);function Er(e){return Cr(e,e=>!he(e),xr)}function _r(e){return Cr(e,he,ee.isIntrospectionType)}function xr(e){return!Object(ne.f)(e)&&!Object(ee.isIntrospectionType)(e)}function Cr(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Or(e),...r.map(e=>function(e){return Lr(e)+"directive @"+e.name+Dr(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e)),...i.map(e=>Sr(e))].filter(Boolean).join("\n\n")}function Or(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();if(r&&"Subscription"!==r.name)return!1;return!0}(e))return;const t=[],n=e.getQueryType();n&&t.push("  query: "+n.name);const r=e.getMutationType();r&&t.push("  mutation: "+r.name);const i=e.getSubscriptionType();return i&&t.push("  subscription: "+i.name),Lr(e)+`schema {\n${t.join("\n")}\n}`}function Sr(e){return Object(Q.S)(e)?function(e){return Lr(e)+"scalar "+e.name+function(e){if(null==e.specifiedByURL)return"";return` @specifiedBy(url: ${Object(et.a)({kind:u.a.STRING,value:e.specifiedByURL})})`}(e)}(e):Object(Q.O)(e)?function(e){return Lr(e)+"type "+e.name+wr(e)+kr(e)}(e):Object(Q.I)(e)?function(e){return Lr(e)+"interface "+e.name+wr(e)+kr(e)}(e):Object(Q.U)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Lr(e)+"union "+e.name+n}(e):Object(Q.F)(e)?function(e){const t=e.getValues().map((e,t)=>Lr(e,"  ",!t)+"  "+e.name+Ir(e.deprecationReason));return Lr(e)+"enum "+e.name+Nr(t)}(e):Object(Q.G)(e)?function(e){const t=Object.values(e.getFields()).map((e,t)=>Lr(e,"  ",!t)+"  "+Ar(e));return Lr(e)+"input "+e.name+Nr(t)}(e):void Object(Re.a)(!1,"Unexpected type: "+Object(d.a)(e))}function wr(e){const t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function kr(e){return Nr(Object.values(e.getFields()).map((e,t)=>Lr(e,"  ",!t)+"  "+e.name+Dr(e.args,"  ")+": "+String(e.type)+Ir(e.deprecationReason)))}function Nr(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function Dr(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(Ar).join(", ")+")":"(\n"+e.map((e,n)=>Lr(e,"  "+t,!n)+"  "+t+Ar(e)).join("\n")+"\n"+t+")"}function Ar(e){const t=Object(Tr.a)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=" = "+Object(et.a)(t)),n+Ir(e.deprecationReason)}function Ir(e){if(null==e)return"";if(e!==ce){return` @deprecated(reason: ${Object(et.a)({kind:u.a.STRING,value:e})})`}return" @deprecated"}function Lr(e,t="",n=!0){const{description:r}=e;if(null==r)return"";const i=r.length>70;return(t&&!n?"\n"+t:t)+Object(y.c)(r,i).replace(/\n/g,"\n"+t)+"\n"}var Rr=n(87);function Fr(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:u.a.DOCUMENT,definitions:t}}function Mr(e){const t=[],n=Object.create(null);for(const r of e.definitions)switch(r.kind){case u.a.OPERATION_DEFINITION:t.push(r);break;case u.a.FRAGMENT_DEFINITION:n[r.name.value]=Pr(r.selectionSet)}const r=Object.create(null);for(const i of t){const t=new Set;for(const e of Pr(i.selectionSet))jr(t,n,e);r[i.name?i.name.value:""]={kind:u.a.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===u.a.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function jr(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(void 0!==r)for(const n of r)jr(e,t,n)}}function Pr(e){const t=[];return Object(z.d)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function Vr(e){const t=g(e)?e:new m(e),n=t.body,r=new T(t);let i="",o=!1;for(;r.advance().kind!==f.EOF;){const e=r.token,t=e.kind,a=!E(e.kind);o&&(a||e.kind===f.SPREAD)&&(i+=" ");const s=n.slice(e.start,e.end);t===f.BLOCK_STRING?i+=Ur(s):i+=s,o=a}return i}function Ur(e){const t=e.slice(3,-3);let n=Object(y.a)(t);Object(y.b)(n)>0&&(n="\n"+n);return(n.endsWith('"')&&!n.endsWith('\\"""')||n.endsWith("\\"))&&(n+="\n"),'"""'+n+'"""'}function Br(e){const t=$r(e);if(t)throw t;return e}function $r(e){if("string"==typeof e||Object(p.a)(!1,"Expected name to be a string."),e.startsWith("__"))return new s.a(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Object(te.b)(e)}catch(e){return e}}let Hr,qr;function Gr(e,t){return zr(e,t).filter(e=>e.type in Hr)}function Kr(e,t){return zr(e,t).filter(e=>e.type in qr)}function zr(e,t){return[...Wr(e,t),...Qr(e,t)]}function Qr(e,t){const n=[],r=ai(e.getDirectives(),t.getDirectives());for(const e of r.removed)n.push({type:Hr.DIRECTIVE_REMOVED,description:e.name+" was removed."});for(const[e,t]of r.persisted){const r=ai(e.args,t.args);for(const t of r.added)Object(Q.Q)(t)&&n.push({type:Hr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(const t of r.removed)n.push({type:Hr.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});e.isRepeatable&&!t.isRepeatable&&n.push({type:Hr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`});for(const r of e.locations)t.locations.includes(r)||n.push({type:Hr.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}function Wr(e,t){const n=[],r=ai(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const e of r.removed)n.push({type:Hr.TYPE_REMOVED,description:Object(ne.f)(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:e.name+" was removed."});for(const[e,t]of r.persisted)Object(Q.F)(e)&&Object(Q.F)(t)?n.push(...Xr(e,t)):Object(Q.U)(e)&&Object(Q.U)(t)?n.push(...Jr(e,t)):Object(Q.G)(e)&&Object(Q.G)(t)?n.push(...Yr(e,t)):Object(Q.O)(e)&&Object(Q.O)(t)||Object(Q.I)(e)&&Object(Q.I)(t)?n.push(...ei(e,t),...Zr(e,t)):e.constructor!==t.constructor&&n.push({type:Hr.TYPE_CHANGED_KIND,description:e.name+" changed from "+`${ii(e)} to ${ii(t)}.`});return n}function Yr(e,t){const n=[],r=ai(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.added)Object(Q.R)(t)?n.push({type:Hr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:qr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(const t of r.removed)n.push({type:Hr.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted){ri(t.type,i.type)||n.push({type:Hr.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`})}return n}function Jr(e,t){const n=[],r=ai(e.getTypes(),t.getTypes());for(const t of r.added)n.push({type:qr.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(const t of r.removed)n.push({type:Hr.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}function Xr(e,t){const n=[],r=ai(e.getValues(),t.getValues());for(const t of r.added)n.push({type:qr.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(const t of r.removed)n.push({type:Hr.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}function Zr(e,t){const n=[],r=ai(e.getInterfaces(),t.getInterfaces());for(const t of r.added)n.push({type:qr.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(const t of r.removed)n.push({type:Hr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}function ei(e,t){const n=[],r=ai(Object.values(e.getFields()),Object.values(t.getFields()));for(const t of r.removed)n.push({type:Hr.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(const[t,i]of r.persisted){n.push(...ti(e,t,i));ni(t.type,i.type)||n.push({type:Hr.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`})}return n}function ti(e,t,n){const r=[],i=ai(t.args,n.args);for(const n of i.removed)r.push({type:Hr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(const[n,o]of i.persisted){if(ri(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:qr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{const i=oi(n.defaultValue,n.type),a=oi(o.defaultValue,o.type);i!==a&&r.push({type:qr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:Hr.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`})}for(const n of i.added)Object(Q.Q)(n)?r.push({type:Hr.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:qr.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}function ni(e,t){return Object(Q.K)(e)?Object(Q.K)(t)&&ni(e.ofType,t.ofType)||Object(Q.M)(t)&&ni(e,t.ofType):Object(Q.M)(e)?Object(Q.M)(t)&&ni(e.ofType,t.ofType):Object(Q.L)(t)&&e.name===t.name||Object(Q.M)(t)&&ni(e,t.ofType)}function ri(e,t){return Object(Q.K)(e)?Object(Q.K)(t)&&ri(e.ofType,t.ofType):Object(Q.M)(e)?Object(Q.M)(t)&&ri(e.ofType,t.ofType)||!Object(Q.M)(t)&&ri(e.ofType,t):Object(Q.L)(t)&&e.name===t.name}function ii(e){return Object(Q.S)(e)?"a Scalar type":Object(Q.O)(e)?"an Object type":Object(Q.I)(e)?"an Interface type":Object(Q.U)(e)?"a Union type":Object(Q.F)(e)?"an Enum type":Object(Q.G)(e)?"an Input type":void Object(Re.a)(!1,"Unexpected type: "+Object(d.a)(e))}function oi(e,t){const n=Object(Tr.a)(e,t);null!=n||Object(Re.a)(!1);const r=Object(z.d)(n,{ObjectValue(e){const t=[...e.fields];return t.sort((e,t)=>Object(Ot.a)(e.name.value,t.name.value)),{...e,fields:t}}});return Object(et.a)(r)}function ai(e,t){const n=[],r=[],i=[],o=Object(Xe.a)(e,({name:e})=>e),a=Object(Xe.a)(t,({name:e})=>e);for(const t of e){const e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(const e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}!function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"}(Hr||(Hr={})),function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"}(qr||(qr={}))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=Object.prototype.hasOwnProperty;function r(t,n){return e.call(t,n)}function i(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function o(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,s=new RegExp(a.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=n(71),c=/[&<>"]/,f=/[&<>"]/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function p(e){return d[e]}var h=/[.?*+^$[\]\\(){}|-]/g,m=n(50);t.lib={},t.lib.mdurl=n(72),t.lib.ucmicro=n(140),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=r,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(a,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(s,(function(e,t,n){return t||function(e,t){var n=0;return r(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?o(n):e}(e,n)}))},t.isValidEntityCode=i,t.fromCodePoint=o,t.escapeHtml=function(e){return c.test(e)?e.replace(f,p):e},t.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return m.test(e)},t.escapeRE=function(e){return e.replace(h,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return l}));class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=new Set(Object.keys(o));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}let l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},function(e,t){e.exports=window.React},function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f}));var r=n(3),i=n(6),o=n(13),a=n(1);const s=Object.freeze({});function l(e,t,n=o.c){const l=new Map;for(const e of Object.values(a.a))l.set(e,c(t,e));let u=void 0,f=Array.isArray(e),d=[e],p=-1,h=[],m=void 0,g=void 0,v=void 0;const y=[],b=[];let T=e;do{p++;const e=p===d.length,a=e&&0!==h.length;if(e){if(g=0===b.length?void 0:y[y.length-1],m=v,v=b.pop(),a)if(f){m=m.slice();let e=0;for(const[t,n]of h){const r=t-e;null===n?(m.splice(r,1),e++):m[r]=n}}else{m=Object.defineProperties({},Object.getOwnPropertyDescriptors(m));for(const[e,t]of h)m[e]=t}p=u.index,d=u.keys,h=u.edits,f=u.inArray,u=u.prev}else{if(g=v?f?p:d[p]:void 0,m=v?v[g]:T,null==m)continue;v&&y.push(g)}let c;if(!Array.isArray(m)){var E,_;Object(o.e)(m)||Object(i.a)(!1,`Invalid AST Node: ${Object(r.a)(m)}.`);const n=e?null===(E=l.get(m.kind))||void 0===E?void 0:E.leave:null===(_=l.get(m.kind))||void 0===_?void 0:_.enter;if(c=null==n?void 0:n.call(t,m,g,v,y,b),c===s)break;if(!1===c){if(!e){y.pop();continue}}else if(void 0!==c&&(h.push([g,c]),!e)){if(!Object(o.e)(c)){y.pop();continue}m=c}}var x;if(void 0===c&&a&&h.push([g,m]),e)y.pop();else u={inArray:f,index:p,keys:d,edits:h,prev:u},f=Array.isArray(m),d=f?m:null!==(x=n[m.kind])&&void 0!==x?x:[],p=-1,h=[],v&&b.push(v),v=m}while(void 0!==u);return 0!==h.length&&(T=h[h.length-1][1]),T}function u(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.a)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:s}=c(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}if(!i)continue;const l={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const l=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===l)t[a]=r;else if(l===s)t[a]=s;else if(void 0!==l)return l}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===s)t[o]=s;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}};n[r]=l}return n}function c(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function f(e,t,n){const{enter:r,leave:i}=c(e,t);return n?i:r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27);function i(e,t){const n=Object.create(null),i=new o(e),a=Math.floor(.4*e.length)+1;for(const e of t){const t=i.measure(e,a);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{const i=n[e]-n[t];return 0!==i?i:Object(r.a)(e,t)})}class o{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=a(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=a(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,s=i.length;if(o-s>t)return;const l=this._rows;for(let e=0;e<=s;e++)l[0][e]=e;for(let e=1;e<=o;e++){const n=l[(e-1)%3],o=l[e%3];let a=o[0]=e;for(let t=1;t<=s;t++){const s=r[e-1]===i[t-1]?0:1;let u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+s);if(e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]){const n=l[(e-2)%3][t-2];u=Math.min(u,n+1)}u<a&&(a=u),o[t]=u}if(a>t)return}const u=l[o%3][s];return u<=t?u:void 0}}function a(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=function(e,t){return e instanceof t}},function(e,t,n){"use strict";function r(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(6),i=n(2),o=n(24);function a(e){if(null!=e||Object(r.a)(!1,"Must provide name."),"string"==typeof e||Object(r.a)(!1,"Expected name to be a string."),0===e.length)throw new i.a("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!Object(o.b)(e.charCodeAt(t)))throw new i.a(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!Object(o.c)(e.charCodeAt(0)))throw new i.a(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function s(e){if("true"===e||"false"===e||"null"===e)throw new i.a("Enum values cannot be named: "+e);return a(e)}},function(e,t,n){"use strict";function r(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return e>=48&&e<=57}function i(e){return e>=97&&e<=122||e>=65&&e<=90}function o(e){return i(e)||95===e}function a(e){return i(e)||r(e)||95===e}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";function r(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))n[r]=t(i,r);return n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){const t=e.split(/\r\n|[\n\r]/g),n=o(e);if(0!==n)for(let e=1;e<t.length;e++)t[e]=t[e].slice(n);let r=0;for(;r<t.length&&i(t[r]);)++r;let a=t.length;for(;a>r&&i(t[a-1]);)--a;return t.slice(r,a).join("\n")}function i(e){for(const t of e)if(" "!==t&&"\t"!==t)return!1;return!0}function o(e){var t;let n=!0,r=!0,i=0,o=null;for(let t=0;t<e.length;++t)switch(e.charCodeAt(t)){case 13:10===e.charCodeAt(t+1)&&++t;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}function a(e,t=!1){const n=!e.includes("\n"),r=e.startsWith(" ")||e.startsWith("\t"),i=e.endsWith('"'),o=e.endsWith("\\"),a=!n||i||o||t;let s="";return!a||n&&r||(s+="\n"),s+=e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}))},function(e,t,n){"use strict";function r(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let a=e.charCodeAt(n),s=t.charCodeAt(r);if(o(a)&&o(s)){let l=0;do{++n,l=10*l+a-i,a=e.charCodeAt(n)}while(o(a)&&l>0);let u=0;do{++r,u=10*u+s-i,s=t.charCodeAt(r)}while(o(s)&&u>0);if(l<u)return-1;if(l>u)return 1}else{if(a<s)return-1;if(a>s)return 1;++n,++r}}return e.length-t.length}n.d(t,"a",(function(){return r}));const i=48;function o(e){return!isNaN(e)&&i<=e&&e<=57}},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(59),n(111),n(61),n(48),n(127),n(29)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"defaultSchemaLoader",{enumerable:!0,get:function(){return t.defaultSchemaLoader}}),Object.defineProperty(e,"LanguageService",{enumerable:!0,get:function(){return n.LanguageService}}),Object.defineProperty(e,"getAutocompleteSuggestions",{enumerable:!0,get:function(){return r.getAutocompleteSuggestions}}),Object.defineProperty(e,"getDefinitionQueryResultForDefinitionNode",{enumerable:!0,get:function(){return r.getDefinitionQueryResultForDefinitionNode}}),Object.defineProperty(e,"getDefinitionQueryResultForFragmentSpread",{enumerable:!0,get:function(){return r.getDefinitionQueryResultForFragmentSpread}}),Object.defineProperty(e,"getDefinitionQueryResultForNamedType",{enumerable:!0,get:function(){return r.getDefinitionQueryResultForNamedType}}),Object.defineProperty(e,"getDefinitionState",{enumerable:!0,get:function(){return r.getDefinitionState}}),Object.defineProperty(e,"getDiagnostics",{enumerable:!0,get:function(){return r.getDiagnostics}}),Object.defineProperty(e,"getFieldDef",{enumerable:!0,get:function(){return r.getFieldDef}}),Object.defineProperty(e,"getFragmentDefinitions",{enumerable:!0,get:function(){return r.getFragmentDefinitions}}),Object.defineProperty(e,"getHoverInformation",{enumerable:!0,get:function(){return r.getHoverInformation}}),Object.defineProperty(e,"getOutline",{enumerable:!0,get:function(){return r.getOutline}}),Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return r.getRange}}),Object.defineProperty(e,"getTokenAtPosition",{enumerable:!0,get:function(){return r.getTokenAtPosition}}),Object.defineProperty(e,"getTypeInfo",{enumerable:!0,get:function(){return r.getTypeInfo}}),Object.defineProperty(e,"getVariableCompletions",{enumerable:!0,get:function(){return r.getVariableCompletions}}),Object.defineProperty(e,"GraphQLLanguageService",{enumerable:!0,get:function(){return r.GraphQLLanguageService}}),Object.defineProperty(e,"SEVERITY",{enumerable:!0,get:function(){return r.SEVERITY}}),Object.defineProperty(e,"DIAGNOSTIC_SEVERITY",{enumerable:!0,get:function(){return r.DIAGNOSTIC_SEVERITY}}),Object.defineProperty(e,"canUseDirective",{enumerable:!0,get:function(){return r.canUseDirective}}),Object.defineProperty(e,"SuggestionCommand",{enumerable:!0,get:function(){return r.SuggestionCommand}}),Object.defineProperty(e,"onlineParser",{enumerable:!0,get:function(){return i.onlineParser}}),Object.defineProperty(e,"ParseRules",{enumerable:!0,get:function(){return i.ParseRules}}),Object.defineProperty(e,"CharacterStream",{enumerable:!0,get:function(){return i.CharacterStream}}),Object.defineProperty(e,"RuleKinds",{enumerable:!0,get:function(){return i.RuleKinds}}),Object.defineProperty(e,"LexRules",{enumerable:!0,get:function(){return i.LexRules}}),Object.defineProperty(e,"isIgnored",{enumerable:!0,get:function(){return i.isIgnored}}),Object.defineProperty(e,"p",{enumerable:!0,get:function(){return i.p}}),Object.defineProperty(e,"list",{enumerable:!0,get:function(){return i.list}}),Object.defineProperty(e,"t",{enumerable:!0,get:function(){return i.t}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(e,"CompletionItemKind",{enumerable:!0,get:function(){return o.CompletionItemKind}}),Object.defineProperty(e,"FileChangeTypeKind",{enumerable:!0,get:function(){return o.FileChangeTypeKind}}),Object.defineProperty(e,"getASTNodeAtPosition",{enumerable:!0,get:function(){return a.getASTNodeAtPosition}}),Object.defineProperty(e,"getFragmentDependencies",{enumerable:!0,get:function(){return a.getFragmentDependencies}}),Object.defineProperty(e,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return a.getFragmentDependenciesForAST}}),Object.defineProperty(e,"getOperationASTFacts",{enumerable:!0,get:function(){return a.getOperationASTFacts}}),Object.defineProperty(e,"getOperationFacts",{enumerable:!0,get:function(){return a.getOperationFacts}}),Object.defineProperty(e,"getQueryFacts",{enumerable:!0,get:function(){return a.getQueryFacts}}),Object.defineProperty(e,"getVariablesJSONSchema",{enumerable:!0,get:function(){return a.getVariablesJSONSchema}}),Object.defineProperty(e,"offsetToPosition",{enumerable:!0,get:function(){return a.offsetToPosition}}),Object.defineProperty(e,"pointToOffset",{enumerable:!0,get:function(){return a.pointToOffset}}),Object.defineProperty(e,"Position",{enumerable:!0,get:function(){return a.Position}}),Object.defineProperty(e,"collectVariables",{enumerable:!0,get:function(){return a.collectVariables}}),Object.defineProperty(e,"validateWithCustomRules",{enumerable:!0,get:function(){return a.validateWithCustomRules}}),Object.defineProperty(e,"Range",{enumerable:!0,get:function(){return a.Range}})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(119),n(121),n(122),n(123),n(124),n(67),n(125)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s){"use strict";function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getFragmentDependencies",{enumerable:!0,get:function(){return t.getFragmentDependencies}}),Object.defineProperty(e,"getFragmentDependenciesForAST",{enumerable:!0,get:function(){return t.getFragmentDependenciesForAST}}),Object.defineProperty(e,"getVariablesJSONSchema",{enumerable:!0,get:function(){return n.getVariablesJSONSchema}}),Object.defineProperty(e,"getASTNodeAtPosition",{enumerable:!0,get:function(){return r.getASTNodeAtPosition}}),Object.defineProperty(e,"pointToOffset",{enumerable:!0,get:function(){return r.pointToOffset}}),Object.defineProperty(e,"Position",{enumerable:!0,get:function(){return i.Position}}),Object.defineProperty(e,"Range",{enumerable:!0,get:function(){return i.Range}}),Object.defineProperty(e,"locToRange",{enumerable:!0,get:function(){return i.locToRange}}),Object.defineProperty(e,"offsetToPosition",{enumerable:!0,get:function(){return i.offsetToPosition}}),Object.defineProperty(e,"validateWithCustomRules",{enumerable:!0,get:function(){return o.validateWithCustomRules}}),Object.defineProperty(e,"collectVariables",{enumerable:!0,get:function(){return a.collectVariables}}),Object.defineProperty(e,"getOperationFacts",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"getOperationASTFacts",{enumerable:!0,get:function(){return s.getOperationASTFacts}}),Object.defineProperty(e,"getQueryFacts",{enumerable:!0,get:function(){return s.getQueryFacts}}),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(s)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),u=t.exec(l);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,u=n.line,c=e.lastLine();u<=c;){for(var f=0;f<l&&!(u>c);f++){var d=e.getLine(u++);s=null==s?d:s+"\n"+d}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,f=n.line,d=e.firstLine();f>=d;){for(var p=0;p<s&&f>=d;p++){var h=e.getLine(f--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=f+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function f(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function d(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,d=e.lastLine()+1-l.length;u<=d;u++,c=0){var p=e.getLine(u).slice(c),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=f(p,h,m,s)+c,{from:r(u,f(p,h,m,s)+c),to:r(u,f(p,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=s(y),T=l[l.length-1];if(b.slice(0,T.length)==T)return{from:r(u,f(p,h,g,s)+c),to:r(u+l.length-1,f(y,b,T.length,s))}}}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,d=e.firstLine()-1+l.length;u>=d;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,f(p,h,m,s)),to:r(u,f(p,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(u+1-l.length,f(y,b,y.length-l[0].length,s)),to:r(u,f(p,h,g.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?p:d)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:a)(e,t,r)}:this.matches=function(n,r){return(n?c:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new h(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new h(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(10))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",(function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)f.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,f=a.getElementsByTagName("input")[0];return f?(f.focus(),o.value&&(f.value=o.value,!1!==o.selectValueOnOpen&&f.select()),o.onInput&&e.on(f,"input",(function(e){o.onInput(e,f.value,u)})),o.onKeyUp&&e.on(f,"keyup",(function(e){o.onKeyUp(e,f.value,u)})),e.on(f,"keydown",(function(t){o&&o.onKeyDown&&o.onKeyDown(t,f.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(f.blur(),e.e_stop(t),u()),13==t.keyCode&&i(f.value,t))})),!1!==o.closeOnBlur&&e.on(a,"focusout",(function(e){null!==e.relatedTarget&&u()}))):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",(function(){u(),l.focus()})),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u})),e.defineExtension("openConfirm",(function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function f(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var d=0;d<s.length;++d){var p=s[d];!function(t){e.on(p,"click",(function(n){e.e_preventDefault(n),f(),t&&t(u)}))}(i[d]),e.on(p,"blur",(function(){--c,setTimeout((function(){c<=0&&f()}),200)})),e.on(p,"focus",(function(){++c}))}})),e.defineExtension("openNotification",(function(r,i){n(this,u);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function u(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",(function(t){e.e_preventDefault(t),u()})),l&&(o=setTimeout(u,l)),u}))}(n(10))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(3),i=n(8),o=n(15),a=n(33),s=n(1),l=n(5),u=n(0);function c(e,t){if(Object(u.M)(t)){const n=c(e,t.ofType);return(null==n?void 0:n.kind)===s.a.NULL?null:n}if(null===e)return{kind:s.a.NULL};if(void 0===e)return null;if(Object(u.K)(t)){const n=t.ofType;if(Object(a.a)(e)){const t=[];for(const r of e){const e=c(r,n);null!=e&&t.push(e)}return{kind:s.a.LIST,values:t}}return c(e,n)}if(Object(u.G)(t)){if(!Object(o.a)(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=c(e[r.name],r.type);t&&n.push({kind:s.a.OBJECT_FIELD,name:{kind:s.a.NAME,value:r.name},value:t})}return{kind:s.a.OBJECT,fields:n}}if(Object(u.J)(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:s.a.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return f.test(e)?{kind:s.a.INT,value:e}:{kind:s.a.FLOAT,value:e}}if("string"==typeof n)return Object(u.F)(t)?{kind:s.a.ENUM,value:n}:t===l.c&&f.test(n)?{kind:s.a.INT,value:n}:{kind:s.a.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${Object(r.a)(n)}.`)}Object(i.a)(!1,"Unexpected input type: "+Object(r.a)(t))}const f=/^-?(?:0|[1-9][0-9]*)$/},function(e,t,n){"use strict";function r(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}n.d(t,"a",(function(){return r}))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(11)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){const r=e.onClick?e.onClick:()=>null;return function e(r,i){return r instanceof n.GraphQLNonNull?t.default.createElement("span",null,e(r.ofType,i),"!"):r instanceof n.GraphQLList?t.default.createElement("span",null,"[",e(r.ofType,i),"]"):t.default.createElement("a",{className:"type-name",onClick:e=>{e.preventDefault(),i(r,e)},href:"#"},null==r?void 0:r.name)}(e.type,r)},t=(r=t)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(8);const i=/\r\n|[\n\r]/g;function o(e,t){let n=0,o=1;for(const a of e.body.matchAll(i)){if("number"==typeof a.index||Object(r.a)(!1),a.index>=t)break;n=a.index+a[0].length,o+=1}return{line:o,column:t+1-n}}},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";const t=n(45),r={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},i={...r,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?i:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;let t=!1;"object"==typeof window&&(t="MacIntel"===window.navigator.platform);var n={[t?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};e.default=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(n){n=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in l)i[o]=l[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new t(this,n);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var n=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},r=window.cancelAnimationFrame||clearTimeout;function i(e){return"string"==typeof e?e:e.text}function o(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,n){this.completion=t,this.data=n,this.picked=!1;var r=this,a=t.cm,s=a.getInputField().ownerDocument,l=s.defaultView||s.parentWindow,u=this.hints=s.createElement("ul"),c=t.cm.options.theme;u.className="CodeMirror-hints "+c,this.selectedHint=n.selectedHint||0;for(var f=n.list,d=0;d<f.length;++d){var p=u.appendChild(s.createElement("li")),h=f[d],m="CodeMirror-hint"+(d!=this.selectedHint?"":" CodeMirror-hint-active");null!=h.className&&(m=h.className+" "+m),p.className=m,h.render?h.render(p,n,h):p.appendChild(s.createTextNode(h.displayText||i(h))),p.hintId=d}var g=t.options.container||s.body,v=a.cursorCoords(t.options.alignWithWord?n.from:null),y=v.left,b=v.bottom,T=!0,E=0,_=0;if(g!==s.body){var x=-1!==["absolute","relative","fixed"].indexOf(l.getComputedStyle(g).position)?g:g.offsetParent,C=x.getBoundingClientRect(),O=s.body.getBoundingClientRect();E=C.left-O.left-x.scrollLeft,_=C.top-O.top-x.scrollTop}u.style.left=y-E+"px",u.style.top=b-_+"px";var S=l.innerWidth||Math.max(s.body.offsetWidth,s.documentElement.offsetWidth),w=l.innerHeight||Math.max(s.body.offsetHeight,s.documentElement.offsetHeight);g.appendChild(u);var k=u.getBoundingClientRect(),N=k.bottom-w,D=u.scrollHeight>u.clientHeight+1,A=a.getScrollInfo();if(N>0){var I=k.bottom-k.top;if(v.top-(v.bottom-k.top)-I>0)u.style.top=(b=v.top-I-_)+"px",T=!1;else if(I>w){u.style.height=w-5+"px",u.style.top=(b=v.bottom-k.top-_)+"px";var L=a.getCursor();n.from.ch!=L.ch&&(v=a.cursorCoords(L),u.style.left=(y=v.left-E)+"px",k=u.getBoundingClientRect())}}var R,F=k.right-S;if(F>0&&(k.right-k.left>S&&(u.style.width=S-5+"px",F-=k.right-k.left-S),u.style.left=(y=v.left-F-E)+"px"),D)for(var M=u.firstChild;M;M=M.nextSibling)M.style.paddingRight=a.display.nativeBarWidth+"px";return a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:f.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){R=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(R)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=b+A.top-e.top,i=r-(l.pageYOffset||(s.documentElement||s.body).scrollTop);if(T||(i+=u.offsetHeight),i<=n.top||i>=n.bottom)return t.close();u.style.top=r+"px",u.style.left=y+A.left-e.left+"px"}),e.on(u,"dblclick",(function(e){var t=o(u,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(u,"click",(function(e){var n=o(u,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(u,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),this.scrollToActive(),e.signal(n,"select",f[this.selectedHint],u.childNodes[this.selectedHint]),!0}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],o=this;this.cm.operation((function(){r.hint?r.hint(o.cm,t,r):o.cm.replaceRange(i(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),o.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),i=this.cm.getLine(t.line);if(t.line!=this.startPos.line||i.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(i.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=n((function(){o.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;s(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r&&(r.className=r.className.replace(" CodeMirror-hint-active","")),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},scrollToActive:function(){var e=this.completion.options.scrollMargin||0,t=this.hints.childNodes[Math.max(0,this.selectedHint-e)],n=this.hints.childNodes[Math.min(this.data.list.length-1,this.selectedHint+e)],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(o){if(o==r.length)return t(null);s(r[o],e,n,(function(e){e&&e.list.length>0?t(e):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:a,to:s}})),e.commands.autocomplete=e.showHint;var l={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n(10))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),f=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!f)return null;var d=">"==f.charAt(1)?1:-1;if(o&&o.strict&&d>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(d>0?1:0)),d,p||null,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==f.charAt(0),forward:d>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],f=i(s),d=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=d;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(f.test(v)&&(void 0===a||e.getTokenTypeAt(n(p,m+1))==a)){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=e.listSelections(),u=0;u<l.length;u++){var c=l[u].empty()&&o(e,l[u].head,i);if(c&&e.getLine(c.from.line).length<=a){var f=c.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(c.from,n(c.from.line,c.from.ch+1),{className:f})),c.to&&e.getLine(c.to.line).length<=a&&s.push(e.markText(c.to,n(c.to.line,c.to.ch+1),{className:f}))}}if(s.length){t&&e.state.focused&&e.focus();var d=function(){e.operation((function(){for(var e=0;e<s.length;e++)s[e].clear()}))};if(!r)return d;setTimeout(d,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}e.defineOption("matchBrackets",!1,(function(t,n,r){function i(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",i),i(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",i))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(10))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){e.defineOption("foldGutter",!1,(function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",l),t.off("changes",u),t.off("viewportChange",c),t.off("fold",f),t.off("unfold",f),t.off("swapDoc",u)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(t),t.on("gutterClick",l),t.on("changes",u),t.on("viewportChange",c),t.on("fold",f),t.on("unfold",f),t.on("swapDoc",u))}));var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,n,o){var s=e.state.foldGutter.options,l=n-1,u=e.foldOption(s,"minFoldSize"),c=e.foldOption(s,"rangeFinder"),f="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),d="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(n,o,(function(n){++l;var o=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(e,l)){if(f&&a&&f.test(a.className))return;o=i(s.indicatorFolded)}else{var p=t(l,0),h=c&&c(e,p);if(h&&h.to.line-h.from.line>=u){if(d&&a&&d.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)}))}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation((function(){o(e,t.from,t.to)})),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){s(e)}),n.foldOnChangeTimeSpan||600)}}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout((function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation((function(){n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)}))}),n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}}(n(10),n(192))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e;(e=n(10)).registerHelper("fold","brace",(function(t,n){var r,i=n.line,o=t.getLine(i);function a(a){for(var s=n.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(a,s-1);if(-1!=u){if(1==l&&u<n.ch)break;if(r=t.getTokenTypeAt(e.Pos(i,u+1)),!/^(comment|string)/.test(r))return u+1;s=u-1}else{if(1==l)break;l=1,s=o.length}}}var s="{",l="}",u=a("{");if(null==u&&(s="[",l="]",u=a("[")),null!=u){var c,f,d=1,p=t.lastLine();e:for(var h=i;h<=p;++h)for(var m=t.getLine(h),g=h==i?u:0;;){var v=m.indexOf(s,g),y=m.indexOf(l,g);if(v<0&&(v=m.length),y<0&&(y=m.length),(g=Math.min(v,y))==m.length)break;if(t.getTokenTypeAt(e.Pos(h,g+1))==r)if(g==v)++d;else if(!--d){c=h,f=g;break e}++g}if(null!=c&&i!=c)return{from:e.Pos(i,u),to:e.Pos(c,f)}}})),e.registerHelper("fold","import",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}})),e.registerHelper("fold","include",(function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,(function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)}))},e.keyMap.default["Alt-G"]="jumpToLine"}(n(10),n(31))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy((function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,f=0;u!=c;u+=i,f++){var d=o.charAt(i<0?u-1:u),p="_"!=d&&e.isWordChar(d)?"w":"o";if("w"==p&&d.toUpperCase()==d&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()}))}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}function s(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],s=a.head,l=t.scanForBracket(s,-1);if(!l)return!1;for(;;){var u=t.scanForBracket(s,1);if(!u)return!1;if(u.ch=="(){}[]".charAt("(){}[]".indexOf(l.ch)+1)){var c=n(l.pos.line,l.pos.ch+1);if(0!=e.cmpPos(c,a.from())||0!=e.cmpPos(u.pos,a.to())){i.push({anchor:c,head:u.pos});break}if(!(l=t.scanForBracket(l.pos,-1)))return!1}s=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function l(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function u(t,r){if(t.isReadOnly())return e.Pass;for(var i,o=t.listSelections(),a=[],s=0;s<o.length;s++){var l=o[s];if(!l.empty()){for(var u=l.from().line,c=l.to().line;s<o.length-1&&o[s+1].from().line==c;)c=o[++s].to().line;o[s].to().ch||c--,a.push(u,c)}}a.length?i=!0:a.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],o=0;o<a.length;o+=2){var s=a[o],l=a[o+1],u=n(s,0),c=n(l),f=t.getRange(u,c,!1);r?f.sort():f.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-1:e==t?0:1})),t.replaceRange(f,u,c),i&&e.push({anchor:u,head:n(l+1,0)})}i&&t.setSelections(e,0)}))}function c(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(u=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}}))}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function d(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var l=t.getRange(r,i),u=a?new RegExp("\\b"+l+"\\b"):l,c=t.getSearchCursor(u,i),f=c.findNext();if(f||(f=(c=t.getSearchCursor(u,n(t.firstLine(),0))).findNext()),!f||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),c.from(),c.to()))return;t.addSelection(c.from(),c.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)},t.selectScope=function(e){s(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!s(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,l(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,l(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],u=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),u=s.start;u<=s.end;u++){var c=u-t;u==s.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){u(e,!0)},t.sortLinesInsensitive=function(e){u(e,!1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){c(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){c(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){d(e,!0)},t.findUnderPrevious=function(e){d(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var p=e.keyMap;p.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(p.macSublime),p.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(p.pcSublime);var h=p.default==p.macDefault;p.sublime=h?p.macSublime:p.pcSublime}(n(10),n(30),n(39))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function e(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:n.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return(i?"/":"")+(t=e(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(n){var o=t.isAbsolute(n),a="/"===i(n,-1);return(n=e(r(n.split("/"),(function(e){return!!e})),!o).join("/"))||o||(n="."),n&&a&&(n+="/"),(o?"/":"")+n},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return(u=u.concat(o.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}})?r.apply(t,i):r)||(e.exports=o)}).call(this,n(60))},function(e,t,n){(function(r){var i,o,a;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[],void 0===(a="function"==typeof(i=function(){"use strict";const e=n(45),i="win32"===r.platform,{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:l}=n(36);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>s.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(l,"\\$1"),t.toPosixSlashes=e=>e.replace(o,"/"),t.removeBackslashes=e=>e.replace(a,e=>"\\"===e?"":e),t.supportsLookbehinds=()=>{const e=r.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=t=>t&&"boolean"==typeof t.windows?t.windows:!0===i||"\\"===e.sep,t.escapeLast=(e,n,r)=>{const i=e.lastIndexOf(n,r);return-1===i?e:"\\"===e[i-1]?t.escapeLast(e,n,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(r=`(?:^(?!${r}).*$)`),r}})?i.apply(t,o):i)||(e.exports=a)}).call(this,n(60))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(63),n(11),n(48),n(62)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAutocompleteSuggestions=function(e,d,p,h,m,g){var v;const y=Object.assign(Object.assign({},g),{schema:e}),b=h||l(d,p),T="Invalid"===b.state.kind?b.state.prevState:b.state;if(!T)return[];const E=T.kind,_=T.step,x=f(e,b.state);if(E===r.RuleKinds.DOCUMENT)return(0,i.hintList)(b,[{label:"query",kind:t.CompletionItemKind.Function},{label:"mutation",kind:t.CompletionItemKind.Function},{label:"subscription",kind:t.CompletionItemKind.Function},{label:"fragment",kind:t.CompletionItemKind.Function},{label:"{",kind:t.CompletionItemKind.Constructor}]);if(E===r.RuleKinds.IMPLEMENTS||E===r.RuleKinds.NAMED_TYPE&&(null===(v=T.prevState)||void 0===v?void 0:v.kind)===r.RuleKinds.IMPLEMENTS)return function(e,o,a,s,l){if(o.needsSeperator)return[];const c=a.getTypeMap(),f=(0,i.objectValues)(c).filter(n.isInterfaceType),d=f.map(({name:e})=>e),p=new Set;u(s,(e,t)=>{var i,o,s,u,c;if(t.name&&(t.kind!==r.RuleKinds.INTERFACE_DEF||d.includes(t.name)||p.add(t.name),t.kind===r.RuleKinds.NAMED_TYPE&&(null===(i=t.prevState)||void 0===i?void 0:i.kind)===r.RuleKinds.IMPLEMENTS))if(l.interfaceDef){if(null===(o=l.interfaceDef)||void 0===o?void 0:o.getInterfaces().find(({name:e})=>e===t.name))return;const e=a.getType(t.name),r=null===(s=l.interfaceDef)||void 0===s?void 0:s.toConfig();l.interfaceDef=new n.GraphQLInterfaceType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new n.GraphQLInterfaceType({name:t.name,fields:{}})]}))}else if(l.objectTypeDef){if(null===(u=l.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find(({name:e})=>e===t.name))return;const e=a.getType(t.name),r=null===(c=l.objectTypeDef)||void 0===c?void 0:c.toConfig();l.objectTypeDef=new n.GraphQLObjectType(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new n.GraphQLInterfaceType({name:t.name,fields:{}})]}))}});const h=l.interfaceDef||l.objectTypeDef,m=((null==h?void 0:h.getInterfaces())||[]).map(({name:e})=>e),g=f.concat([...p].map(e=>({name:e}))).filter(({name:e})=>e!==(null==h?void 0:h.name)&&!m.includes(e));return(0,i.hintList)(e,g.map(e=>{const n={label:e.name,kind:t.CompletionItemKind.Interface,type:e};return(null==e?void 0:e.description)&&(n.documentation=e.description),n}))}(b,T,e,d,x);if(E===r.RuleKinds.SELECTION_SET||E===r.RuleKinds.FIELD||E===r.RuleKinds.ALIASED_FIELD)return function(e,r,a){var s;if(r.parentType){const l=r.parentType;let u=[];return"getFields"in l&&(u=(0,i.objectValues)(l.getFields())),(0,n.isCompositeType)(l)&&u.push(n.TypeNameMetaFieldDef),l===(null===(s=null==a?void 0:a.schema)||void 0===s?void 0:s.getQueryType())&&u.push(n.SchemaMetaFieldDef,n.TypeMetaFieldDef),(0,i.hintList)(e,u.map((e,r)=>{var i;const a={sortText:String(r)+e.name,label:e.name,detail:String(e.type),documentation:null!==(i=e.description)&&void 0!==i?i:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:t.CompletionItemKind.Field,type:e.type},s=(e=>{const t=e.type;if((0,n.isCompositeType)(t))return" {\n  $1\n}";if((0,n.isListType)(t))return" {\n  $1\n}";if((0,n.isNonNullType)(t)){if((0,n.isObjectType)(t.ofType))return" {\n  $1\n}";if((0,n.isListType)(t.ofType))return" {\n  $1\n}"}return null})(e);return s&&(a.insertText=e.name+s,a.insertTextFormat=t.InsertTextFormat.Snippet,a.command=o),a}))}return[]}(b,x,y);if(E===r.RuleKinds.ARGUMENTS||E===r.RuleKinds.ARGUMENT&&0===_){const e=x.argDefs;if(e)return(0,i.hintList)(b,e.map(e=>{var n;return{label:e.name,insertText:e.name+": ",command:o,detail:String(e.type),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,kind:t.CompletionItemKind.Variable,type:e.type}}))}if((E===r.RuleKinds.OBJECT_VALUE||E===r.RuleKinds.OBJECT_FIELD&&0===_)&&x.objectFieldDefs){const e=(0,i.objectValues)(x.objectFieldDefs),n=E===r.RuleKinds.OBJECT_VALUE?t.CompletionItemKind.Value:t.CompletionItemKind.Field;return(0,i.hintList)(b,e.map(e=>{var t;return{label:e.name,detail:String(e.type),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:n,type:e.type}}))}if(E===r.RuleKinds.ENUM_VALUE||E===r.RuleKinds.LIST_VALUE&&1===_||E===r.RuleKinds.OBJECT_FIELD&&2===_||E===r.RuleKinds.ARGUMENT&&2===_)return function(e,r,o,s){const l=(0,n.getNamedType)(r.inputType),u=a(o,s,e).filter(e=>e.detail===l.name);if(l instanceof n.GraphQLEnumType){const n=l.getValues();return(0,i.hintList)(e,n.map(e=>{var n;return{label:e.name,detail:String(l),documentation:null!==(n=e.description)&&void 0!==n?n:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:t.CompletionItemKind.EnumMember,type:l}}).concat(u))}return l===n.GraphQLBoolean?(0,i.hintList)(e,u.concat([{label:"true",detail:String(n.GraphQLBoolean),documentation:"Not false.",kind:t.CompletionItemKind.Variable,type:n.GraphQLBoolean},{label:"false",detail:String(n.GraphQLBoolean),documentation:"Not true.",kind:t.CompletionItemKind.Variable,type:n.GraphQLBoolean}])):u}(b,x,d,e);if(E===r.RuleKinds.VARIABLE&&1===_){const t=(0,n.getNamedType)(x.inputType),r=a(d,e,b);return(0,i.hintList)(b,r.filter(e=>e.detail===(null==t?void 0:t.name)))}return E===r.RuleKinds.TYPE_CONDITION&&1===_||E===r.RuleKinds.NAMED_TYPE&&null!=T.prevState&&T.prevState.kind===r.RuleKinds.TYPE_CONDITION?function(e,r,o,a){let s;if(r.parentType)if((0,n.isAbstractType)(r.parentType)){const e=(0,n.assertAbstractType)(r.parentType),t=o.getPossibleTypes(e),a=Object.create(null);t.forEach(e=>{e.getInterfaces().forEach(e=>{a[e.name]=e})}),s=t.concat((0,i.objectValues)(a))}else s=[r.parentType];else{const e=o.getTypeMap();s=(0,i.objectValues)(e).filter(n.isCompositeType)}return(0,i.hintList)(e,s.map(e=>{const r=(0,n.getNamedType)(e);return{label:String(e),documentation:r&&r.description||"",kind:t.CompletionItemKind.Field}}))}(b,x,e):E===r.RuleKinds.FRAGMENT_SPREAD&&1===_?function(e,o,a,l,u){if(!l)return[];const c=a.getTypeMap(),f=(0,i.getDefinitionState)(e.state),d=s(l);u&&u.length>0&&d.push(...u);const p=d.filter(e=>c[e.typeCondition.name.value]&&!(f&&f.kind===r.RuleKinds.FRAGMENT_DEFINITION&&f.name===e.name.value)&&(0,n.isCompositeType)(o.parentType)&&(0,n.isCompositeType)(c[e.typeCondition.name.value])&&(0,n.doTypesOverlap)(a,o.parentType,c[e.typeCondition.name.value]));return(0,i.hintList)(e,p.map(e=>({label:e.name.value,detail:String(c[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,kind:t.CompletionItemKind.Field,type:c[e.typeCondition.name.value]})))}(b,x,e,d,Array.isArray(m)?m:(e=>{const t=[];return e&&(0,n.visit)((0,n.parse)(e),{FragmentDefinition(e){t.push(e)}}),t})(m)):E===r.RuleKinds.VARIABLE_DEFINITION&&2===_||E===r.RuleKinds.LIST_TYPE&&1===_||E===r.RuleKinds.NAMED_TYPE&&T.prevState&&(T.prevState.kind===r.RuleKinds.VARIABLE_DEFINITION||T.prevState.kind===r.RuleKinds.LIST_TYPE||T.prevState.kind===r.RuleKinds.NON_NULL_TYPE)?function(e,r,o){const a=r.getTypeMap(),s=(0,i.objectValues)(a).filter(n.isInputType);return(0,i.hintList)(e,s.map(e=>({label:e.name,documentation:e.description,kind:t.CompletionItemKind.Variable})))}(b,e):E===r.RuleKinds.DIRECTIVE?function(e,n,r,o){if(n.prevState&&n.prevState.kind){const o=r.getDirectives().filter(e=>c(n.prevState,e));return(0,i.hintList)(e,o.map(e=>({label:e.name,documentation:e.description||"",kind:t.CompletionItemKind.Function})))}return[]}(b,T,e):[]},e.getVariableCompletions=a,e.getFragmentDefinitions=s,e.getTokenAtPosition=l,e.runOnlineParser=u,e.canUseDirective=c,e.getTypeInfo=f,e.SuggestionCommand=void 0;const o={command:"editor.action.triggerSuggest",title:"Suggestions"};function a(e,n,o){let a,s=null;const l=Object.create({});return u(e,(e,i)=>{if((null==i?void 0:i.kind)===r.RuleKinds.VARIABLE&&i.name&&(s=i.name),(null==i?void 0:i.kind)===r.RuleKinds.NAMED_TYPE&&s){const e=((e,t)=>{var n,r,i,o,a,s,l,u,c,f;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(f=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===f?void 0:f.kind)===t?e.prevState.prevState.prevState.prevState:void 0})(i,r.RuleKinds.TYPE);(null==e?void 0:e.type)&&(a=n.getType(null==e?void 0:e.type))}s&&a&&(l[s]||(l[s]={detail:a.toString(),insertText:"$"===o.string?s:"$"+s,label:s,type:a,kind:t.CompletionItemKind.Variable},s=null,a=null))}),(0,i.objectValues)(l)}function s(e){const t=[];return u(e,(e,i)=>{i.kind===r.RuleKinds.FRAGMENT_DEFINITION&&i.name&&i.type&&t.push({kind:r.RuleKinds.FRAGMENT_DEFINITION,name:{kind:n.Kind.NAME,value:i.name},selectionSet:{kind:r.RuleKinds.SELECTION_SET,selections:[]},typeCondition:{kind:r.RuleKinds.NAMED_TYPE,name:{kind:n.Kind.NAME,value:i.type}}})}),t}function l(e,t){let n=null,r=null,i=null;const o=u(e,(e,o,a,s)=>{if(s===t.line&&e.getCurrentPosition()>=t.character)return n=a,r=Object.assign({},o),i=e.current(),"BREAK"});return{start:o.start,end:o.end,string:i||o.string,state:r||o.state,style:n||o.style}}function u(e,t){const n=e.split("\n"),i=(0,r.onlineParser)();let o=i.startState(),a="",s=new r.CharacterStream("");for(let e=0;e<n.length;e++){for(s=new r.CharacterStream(n[e]);!s.eol()&&(a=i.token(s,o),"BREAK"!==t(s,o,a,e)););t(s,o,a,e),o.kind||(o=i.startState())}return{start:s.getStartOfToken(),end:s.getCurrentPosition(),string:s.current(),state:o,style:a}}function c(e,t){if(!e||!e.kind)return!1;const i=e.kind,o=t.locations;switch(i){case r.RuleKinds.QUERY:return-1!==o.indexOf(n.DirectiveLocation.QUERY);case r.RuleKinds.MUTATION:return-1!==o.indexOf(n.DirectiveLocation.MUTATION);case r.RuleKinds.SUBSCRIPTION:return-1!==o.indexOf(n.DirectiveLocation.SUBSCRIPTION);case r.RuleKinds.FIELD:case r.RuleKinds.ALIASED_FIELD:return-1!==o.indexOf(n.DirectiveLocation.FIELD);case r.RuleKinds.FRAGMENT_DEFINITION:return-1!==o.indexOf(n.DirectiveLocation.FRAGMENT_DEFINITION);case r.RuleKinds.FRAGMENT_SPREAD:return-1!==o.indexOf(n.DirectiveLocation.FRAGMENT_SPREAD);case r.RuleKinds.INLINE_FRAGMENT:return-1!==o.indexOf(n.DirectiveLocation.INLINE_FRAGMENT);case r.RuleKinds.SCHEMA_DEF:return-1!==o.indexOf(n.DirectiveLocation.SCHEMA);case r.RuleKinds.SCALAR_DEF:return-1!==o.indexOf(n.DirectiveLocation.SCALAR);case r.RuleKinds.OBJECT_TYPE_DEF:return-1!==o.indexOf(n.DirectiveLocation.OBJECT);case r.RuleKinds.FIELD_DEF:return-1!==o.indexOf(n.DirectiveLocation.FIELD_DEFINITION);case r.RuleKinds.INTERFACE_DEF:return-1!==o.indexOf(n.DirectiveLocation.INTERFACE);case r.RuleKinds.UNION_DEF:return-1!==o.indexOf(n.DirectiveLocation.UNION);case r.RuleKinds.ENUM_DEF:return-1!==o.indexOf(n.DirectiveLocation.ENUM);case r.RuleKinds.ENUM_VALUE:return-1!==o.indexOf(n.DirectiveLocation.ENUM_VALUE);case r.RuleKinds.INPUT_DEF:return-1!==o.indexOf(n.DirectiveLocation.INPUT_OBJECT);case r.RuleKinds.INPUT_VALUE_DEF:switch(e.prevState&&e.prevState.kind){case r.RuleKinds.ARGUMENTS_DEF:return-1!==o.indexOf(n.DirectiveLocation.ARGUMENT_DEFINITION);case r.RuleKinds.INPUT_DEF:return-1!==o.indexOf(n.DirectiveLocation.INPUT_FIELD_DEFINITION)}}return!1}function f(e,t){let o,a,s,l,u,c,f,d,p,h,m;return(0,i.forEachState)(t,t=>{switch(t.kind){case r.RuleKinds.QUERY:case"ShortQuery":h=e.getQueryType();break;case r.RuleKinds.MUTATION:h=e.getMutationType();break;case r.RuleKinds.SUBSCRIPTION:h=e.getSubscriptionType();break;case r.RuleKinds.INLINE_FRAGMENT:case r.RuleKinds.FRAGMENT_DEFINITION:t.type&&(h=e.getType(t.type));break;case r.RuleKinds.FIELD:case r.RuleKinds.ALIASED_FIELD:h&&t.name?(u=p?(0,i.getFieldDef)(e,p,t.name):null,h=u?u.type:null):u=null;break;case r.RuleKinds.SELECTION_SET:p=(0,n.getNamedType)(h);break;case r.RuleKinds.DIRECTIVE:s=t.name?e.getDirective(t.name):null;break;case r.RuleKinds.INTERFACE_DEF:t.name&&(f=null,m=new n.GraphQLInterfaceType({name:t.name,interfaces:[],fields:{}}));break;case r.RuleKinds.OBJECT_TYPE_DEF:t.name&&(m=null,f=new n.GraphQLObjectType({name:t.name,interfaces:[],fields:{}}));break;case r.RuleKinds.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case r.RuleKinds.FIELD:a=u&&u.args;break;case r.RuleKinds.DIRECTIVE:a=s&&s.args;break;case r.RuleKinds.ALIASED_FIELD:{const n=t.prevState&&t.prevState.name;if(!n){a=null;break}const r=p?(0,i.getFieldDef)(e,p,n):null;if(!r){a=null;break}a=r.args;break}default:a=null}else a=null;break;case r.RuleKinds.ARGUMENT:if(a)for(let e=0;e<a.length;e++)if(a[e].name===t.name){o=a[e];break}c=o&&o.type;break;case r.RuleKinds.ENUM_VALUE:const g=(0,n.getNamedType)(c);l=g instanceof n.GraphQLEnumType?g.getValues().find(e=>e.value===t.name):null;break;case r.RuleKinds.LIST_VALUE:const v=(0,n.getNullableType)(c);c=v instanceof n.GraphQLList?v.ofType:null;break;case r.RuleKinds.OBJECT_VALUE:const y=(0,n.getNamedType)(c);d=y instanceof n.GraphQLInputObjectType?y.getFields():null;break;case r.RuleKinds.OBJECT_FIELD:const b=t.name&&d?d[t.name]:null;c=b&&b.type;break;case r.RuleKinds.NAMED_TYPE:t.name&&(h=e.getType(t.name))}}),{argDef:o,argDefs:a,directiveDef:s,enumValue:l,fieldDef:u,inputType:c,objectFieldDefs:d,parentType:p,type:h,interfaceDef:m,objectTypeDef:f}}e.SuggestionCommand=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(116),n(64),n(65),n(117),n(118)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={CharacterStream:!0,LexRules:!0,ParseRules:!0,isIgnored:!0,butNot:!0,list:!0,opt:!0,p:!0,t:!0,onlineParser:!0};function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"CharacterStream",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"LexRules",{enumerable:!0,get:function(){return n.LexRules}}),Object.defineProperty(e,"ParseRules",{enumerable:!0,get:function(){return n.ParseRules}}),Object.defineProperty(e,"isIgnored",{enumerable:!0,get:function(){return n.isIgnored}}),Object.defineProperty(e,"butNot",{enumerable:!0,get:function(){return r.butNot}}),Object.defineProperty(e,"list",{enumerable:!0,get:function(){return r.list}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return r.opt}}),Object.defineProperty(e,"p",{enumerable:!0,get:function(){return r.p}}),Object.defineProperty(e,"t",{enumerable:!0,get:function(){return r.t}}),Object.defineProperty(e,"onlineParser",{enumerable:!0,get:function(){return i.default}}),t=s(t),i=s(i),Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(a,t)||t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=n(134)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(){this.__rules__=[],this.__cache__=null}t.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},t.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},t.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},t.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},t.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},t.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},e.exports=t})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}t.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},t.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},t.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},t.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},t.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=t})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11),n(190),n(49)],void 0===(o="function"==typeof(r=function(e,t,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i,o){let s,l;n(10).on(i,"select",(e,n)=>{if(!s){const e=n.parentNode;let t;s=document.createElement("div"),s.className="CodeMirror-hint-information",e.appendChild(s),l=document.createElement("div"),l.className="CodeMirror-hint-deprecation",e.appendChild(l),e.addEventListener("DOMNodeRemoved",t=n=>{n.target===e&&(e.removeEventListener("DOMNodeRemoved",t),s=null,l=null,t=null)})}const i=e.description?a.render(e.description):"Self descriptive.",u=e.type?'<span class="infoType">'+function e(n){return n instanceof t.GraphQLNonNull?e(n.ofType)+"!":n instanceof t.GraphQLList?`[${e(n.ofType)}]`:`<a class="typeName">${(0,r.default)(n.name)}</a>`}(e.type)+"</span>":"";if(s.innerHTML='<div class="content">'+("<p>"===i.slice(0,3)?"<p>"+u+i.slice(3):u+i)+"</div>",e&&l&&e.deprecationReason){const t=e.deprecationReason?a.render(e.deprecationReason):"";l.innerHTML='<span class="deprecation-label">Deprecated</span>'+t,l.style.display="block"}else l&&(l.style.display="none");o&&o(s)})},r=o(r);const a=new((i=o(i)).default)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),u=0;u<a.length;u++){if(!a[u].empty())return e.Pass;var c=l(t,a[u].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(u=a.length-1;u>=0;u--){var f=a[u].head;t.replaceRange("",n(f.line,f.ch-1),n(f.line,f.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var u=l(t,o[a].head);if(!u||i.indexOf(u)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),t.execCommand("goCharLeft"),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(t){return function(i){return function(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),l=a.indexOf(i);if(-1==l)return e.Pass;for(var c,f=r(o,"closeBefore"),d=r(o,"triples"),p=a.charAt(l+1)==i,h=t.listSelections(),m=l%2==0,g=0;g<h.length;g++){var v,y=h[g],b=y.head,T=t.getRange(b,n(b.line,b.ch+1));if(m&&!y.empty())v="surround";else if(!p&&m||T!=i)if(p&&b.ch>1&&d.indexOf(i)>=0&&t.getRange(n(b.line,b.ch-2),b)==i+i){if(b.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(b.line,b.ch-2))))return e.Pass;v="addFour"}else if(p){var E=0==b.ch?" ":t.getRange(n(b.line,b.ch-1),b);if(e.isWordChar(T)||E==i||e.isWordChar(E))return e.Pass;v="both"}else{if(!m||!(0===T.length||/\s/.test(T)||f.indexOf(T)>-1))return e.Pass;v="both"}else v=p&&u(t,b)?"both":d.indexOf(i)>=0&&t.getRange(b,n(b.line,b.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=v)return e.Pass}else c=v}var _=l%2?a.charAt(l-1):i,x=l%2?i:a.charAt(l+1);t.operation((function(){if("skip"==c)t.execCommand("goCharRight");else if("skipThree"==c)for(var r=0;r<3;r++)t.execCommand("goCharRight");else if("surround"==c){var i=t.getSelections();for(r=0;r<i.length;r++)i[r]=_+i[r]+x;for(t.replaceSelections(i,"around"),i=t.listSelections().slice(),r=0;r<i.length;r++)i[r]=(o=i[r],a=void 0,a=e.cmpPos(o.anchor,o.head)>0,{anchor:new n(o.anchor.line,o.anchor.ch+(a?-1:1)),head:new n(o.head.line,o.head.ch+(a?1:-1))});t.setSelections(i)}else"both"==c?(t.replaceSelection(_+x,null),t.triggerElectric(_+x),t.execCommand("goCharLeft")):"addFour"==c&&(t.replaceSelection(_+_+_+_,"before"),t.execCommand("goCharRight"));var o,a}))}(i,t)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function u(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(10))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",i.style.left=t.clientX+5+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),a=null)}var l=setInterval((function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)}),400);e.on(o,"mouseout",s)}function i(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,l=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),u=[],c=0;c<l.length;++c){var f=l[c].__annotation;f&&u.push(f)}u.length&&function(e,t,n){for(var i=n.target||n.srcElement,o=document.createDocumentFragment(),a=0;a<t.length;a++){var l=t[a];o.appendChild(s(l))}r(e,n,o,i)}(e,u,t)}}(e,t)},this.waitingFor=0}function o(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function a(t,n,i,o,a){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+i,o&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=a&&e.on(l,"mouseover",(function(e){r(t,e,n,l)})),s}function s(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function l(t){var n=t.state.lint.options,r=n.options||n,i=n.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(n.async||i.async)!function(t,n,r){var i=t.state.lint,o=++i.waitingFor;function a(){o=-1,t.off("change",a)}t.on("change",a),n(t.getValue(),(function(n,r){t.off("change",a),i.waitingFor==o&&(r&&n instanceof e&&(n=r),t.operation((function(){u(t,n)})))}),r,t)}(t,i,r);else{var o=i(t.getValue(),r,t);if(!o)return;o.then?o.then((function(e){t.operation((function(){u(t,e)}))})):t.operation((function(){u(t,o)}))}}function u(e,n){o(e);for(var r,i,l=e.state.lint,u=l.options,c=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}(n),f=0;f<c.length;++f){var d=c[f];if(d){for(var p=null,h=l.hasGutter&&document.createDocumentFragment(),m=0;m<d.length;++m){var g=d[m],v=g.severity;v||(v="error"),i=v,p="error"==(r=p)?r:i,u.formatAnnotation&&(g=u.formatAnnotation(g)),l.hasGutter&&h.appendChild(s(g)),g.to&&l.marked.push(e.markText(g.from,g.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+v,__annotation:g}))}l.hasGutter&&e.setGutterMarker(f,t,a(e,h,p,d.length>1,l.options.tooltips))}}u.onUpdateLinting&&u.onUpdateLinting(n,c,e)}function c(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){l(e)}),t.options.delay||500))}e.defineOption("lint",!1,(function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",c),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),u=!1,f=0;f<s.length;++f)s[f]==t&&(u=!0);var d=n.state.lint=new i(n,(p=r)instanceof Function?{getAnnotations:p}:(p&&!0!==p||(p={}),p),u);!1!==d.options.lintOnChange&&n.on("change",c),0!=d.options.tooltips&&"gutter"!=d.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",d.onMouseOver),l(n)}var p})),e.defineExtension("performLint",(function(){this.state.lint&&l(this)}))}(n(10))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(34),n(84)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({arg:e,onClickType:i,showDefaultValue:o}){return t.default.createElement("span",{className:"arg"},t.default.createElement("span",{className:"arg-name"},e.name),": ",t.default.createElement(n.default,{type:e.type,onClick:i}),!1!==o&&t.default.createElement(r.default,{field:e}))},t=i(t),n=i(n),r=i(r)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(49)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({markdown:e,className:n}){return e?t.default.createElement("div",{className:n,dangerouslySetInnerHTML:{__html:i.render(e)}}):t.default.createElement("div",null)},t=r(t);const i=new((n=r(n)).default)({linkify:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(35);function i(e){return o(e.source,Object(r.a)(e.source,e.start))}function o(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=1===t.line?n:0,u=t.column+l,c=`${e.name}:${s}:${u}\n`,f=r.split(/\r\n|[\n\r]/g),d=f[i];if(d.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return c+a([[s+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return c+a([[s-1+" |",f[i-1]],[s+" |",d],["|","^".padStart(u)],[s+1+" |",f[i+1]]])}function a(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSchemaLoader=void 0,e.defaultSchemaLoader=(e,n)=>{const{schema:r,documentAST:i,introspectionJSON:o,introspectionJSONString:a,buildSchemaOptions:s,documentString:l}=e;if(r)return r;if(a){const e=JSON.parse(a);return(0,t.buildClientSchema)(e,s)}if(l){const e=n(l);return(0,t.buildASTSchema)(e,s)}if(o)return(0,t.buildClientSchema)(o,s);if(i)return(0,t.buildASTSchema)(i,s);throw Error("no schema supplied")}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],u=!1,c=-1;function f(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&d())}function d(){if(!u){var e=a(f);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c<t;)s&&s[c].run();c=-1,t=l.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(62),n(47),n(66),n(68),n(69),n(70),n(126)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={getOutline:!0,getHoverInformation:!0};Object.defineProperty(e,"getOutline",{enumerable:!0,get:function(){return o.getOutline}}),Object.defineProperty(e,"getHoverInformation",{enumerable:!0,get:function(){return a.getHoverInformation}}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(l,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))})),Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))})),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))})),Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))})),Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(l,t)||t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11),n(7)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t){const n=[];let r=e;for(;r&&r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}function i(e,t){const n=e.filter(t);return 0===n.length?e:n}function o(e){return e.toLowerCase().replace(/\W/g,"")}function a(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getDefinitionState=function(e){let t;return r(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t},e.getFieldDef=function(e,r,i){return i===n.SchemaMetaFieldDef.name&&e.getQueryType()===r?n.SchemaMetaFieldDef:i===n.TypeMetaFieldDef.name&&e.getQueryType()===r?n.TypeMetaFieldDef:i===n.TypeNameMetaFieldDef.name&&(0,t.isCompositeType)(r)?n.TypeNameMetaFieldDef:"getFields"in r?r.getFields()[i]:null},e.forEachState=r,e.objectValues=function(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r},e.hintList=function(e,t){return function(e,t){return t?i(i(e.map(e=>({proximity:a(o(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry):i(e,e=>!e.isDeprecated)}(t,o(e.string))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";var t,n,r,i,o,a,s,l,u,c,f,d,p,h,m,g,v,y,b,T;Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionKind=e.DocumentSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.TextEdit=e.Command=e.Diagnostic=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=void 0,e.Position=t,function(e){e.create=function(e,t){return{line:e,character:t}},e.is=function(e){var t=e;return J.objectLiteral(t)&&J.number(t.line)&&J.number(t.character)}}(t||(e.Position=t={})),e.Range=n,function(e){e.create=function(e,n,r,i){if(J.number(e)&&J.number(n)&&J.number(r)&&J.number(i))return{start:t.create(e,n),end:t.create(r,i)};if(t.is(e)&&t.is(n))return{start:e,end:n};throw new Error("Range#create called with invalid arguments["+e+", "+n+", "+r+", "+i+"]")},e.is=function(e){var n=e;return J.objectLiteral(n)&&t.is(n.start)&&t.is(n.end)}}(n||(e.Range=n={})),e.Location=r,function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return J.defined(t)&&n.is(t.range)&&(J.string(t.uri)||J.undefined(t.uri))}}(r||(e.Location=r={})),e.LocationLink=i,function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return J.defined(t)&&n.is(t.targetRange)&&J.string(t.targetUri)&&(n.is(t.targetSelectionRange)||J.undefined(t.targetSelectionRange))&&(n.is(t.originSelectionRange)||J.undefined(t.originSelectionRange))}}(i||(e.LocationLink=i={})),e.Color=o,function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return J.number(t.red)&&J.number(t.green)&&J.number(t.blue)&&J.number(t.alpha)}}(o||(e.Color=o={})),e.ColorInformation=a,function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return n.is(t.range)&&o.is(t.color)}}(a||(e.ColorInformation=a={})),e.ColorPresentation=s,function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return J.string(t.label)&&(J.undefined(t.textEdit)||m.is(t))&&(J.undefined(t.additionalTextEdits)||J.typedArray(t.additionalTextEdits,m.is))}}(s||(e.ColorPresentation=s={})),e.FoldingRangeKind=l,function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(l||(e.FoldingRangeKind=l={})),e.FoldingRange=u,function(e){e.create=function(e,t,n,r,i){var o={startLine:e,endLine:t};return J.defined(n)&&(o.startCharacter=n),J.defined(r)&&(o.endCharacter=r),J.defined(i)&&(o.kind=i),o},e.is=function(e){var t=e;return J.number(t.startLine)&&J.number(t.startLine)&&(J.undefined(t.startCharacter)||J.number(t.startCharacter))&&(J.undefined(t.endCharacter)||J.number(t.endCharacter))&&(J.undefined(t.kind)||J.string(t.kind))}}(u||(e.FoldingRange=u={})),e.DiagnosticRelatedInformation=c,function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return J.defined(t)&&r.is(t.location)&&J.string(t.message)}}(c||(e.DiagnosticRelatedInformation=c={})),e.DiagnosticSeverity=f,function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(f||(e.DiagnosticSeverity=f={})),e.DiagnosticTag=d,function(e){e.Unnecessary=1,e.Deprecated=2}(d||(e.DiagnosticTag=d={})),e.Diagnostic=p,function(e){e.create=function(e,t,n,r,i,o){var a={range:e,message:t};return J.defined(n)&&(a.severity=n),J.defined(r)&&(a.code=r),J.defined(i)&&(a.source=i),J.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t=e;return J.defined(t)&&n.is(t.range)&&J.string(t.message)&&(J.number(t.severity)||J.undefined(t.severity))&&(J.number(t.code)||J.string(t.code)||J.undefined(t.code))&&(J.string(t.source)||J.undefined(t.source))&&(J.undefined(t.relatedInformation)||J.typedArray(t.relatedInformation,c.is))}}(p||(e.Diagnostic=p={})),e.Command=h,function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return J.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){var t=e;return J.defined(t)&&J.string(t.title)&&J.string(t.command)}}(h||(e.Command=h={})),e.TextEdit=m,function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return J.objectLiteral(t)&&J.string(t.newText)&&n.is(t.range)}}(m||(e.TextEdit=m={})),e.TextDocumentEdit=g,function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return J.defined(t)&&_.is(t.textDocument)&&Array.isArray(t.edits)}}(g||(e.TextDocumentEdit=g={})),e.CreateFile=v,function(e){e.create=function(e,t){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&J.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||J.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||J.boolean(t.options.ignoreIfExists)))}}(v||(e.CreateFile=v={})),e.RenameFile=y,function(e){e.create=function(e,t,n){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),r},e.is=function(e){var t=e;return t&&"rename"===t.kind&&J.string(t.oldUri)&&J.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||J.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||J.boolean(t.options.ignoreIfExists)))}}(y||(e.RenameFile=y={})),e.DeleteFile=b,function(e){e.create=function(e,t){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&J.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||J.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||J.boolean(t.options.ignoreIfNotExists)))}}(b||(e.DeleteFile=b={})),e.WorkspaceEdit=T,function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return J.string(e.kind)?v.is(e)||y.is(e)||b.is(e):g.is(e)})))}}(T||(e.WorkspaceEdit=T={}));var E,_,x,C,O,S,w,k,N,D,A,I,L,R,F,M,j,P,V,U,B,$,H,q,G,K,z,Q,W=function(){function e(e){this.edits=e}return e.prototype.insert=function(e,t){this.edits.push(m.insert(e,t))},e.prototype.replace=function(e,t){this.edits.push(m.replace(e,t))},e.prototype.delete=function(e){this.edits.push(m.del(e))},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e}(),Y=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),e&&(this._workspaceEdit=e,e.documentChanges?e.documentChanges.forEach((function(e){if(g.is(e)){var n=new W(e.edits);t._textEditChanges[e.textDocument.uri]=n}})):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new W(e.changes[n]);t._textEditChanges[n]=r})))}return Object.defineProperty(e.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:!0,configurable:!0}),e.prototype.getTextEditChange=function(e){if(_.is(e)){if(this._workspaceEdit||(this._workspaceEdit={documentChanges:[]}),!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t=e;if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new W(i),this._textEditChanges[t.uri]=r}return r}if(this._workspaceEdit||(this._workspaceEdit={changes:Object.create(null)}),!this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new W(i),this._textEditChanges[e]=r}return r},e.prototype.createFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(v.create(e,t))},e.prototype.renameFile=function(e,t,n){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(y.create(e,t,n))},e.prototype.deleteFile=function(e,t){this.checkDocumentChanges(),this._workspaceEdit.documentChanges.push(b.create(e,t))},e.prototype.checkDocumentChanges=function(){if(!this._workspaceEdit||!this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.")},e}();e.WorkspaceChange=Y,e.TextDocumentIdentifier=E,function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return J.defined(t)&&J.string(t.uri)}}(E||(e.TextDocumentIdentifier=E={})),e.VersionedTextDocumentIdentifier=_,function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return J.defined(t)&&J.string(t.uri)&&(null===t.version||J.number(t.version))}}(_||(e.VersionedTextDocumentIdentifier=_={})),e.TextDocumentItem=x,function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return J.defined(t)&&J.string(t.uri)&&J.string(t.languageId)&&J.number(t.version)&&J.string(t.text)}}(x||(e.TextDocumentItem=x={})),e.MarkupKind=C,function(e){e.PlainText="plaintext",e.Markdown="markdown"}(C||(e.MarkupKind=C={})),function(e){e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(C||(e.MarkupKind=C={})),e.MarkupContent=O,function(e){e.is=function(e){var t=e;return J.objectLiteral(e)&&C.is(t.kind)&&J.string(t.value)}}(O||(e.MarkupContent=O={})),e.CompletionItemKind=S,function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(S||(e.CompletionItemKind=S={})),e.InsertTextFormat=w,function(e){e.PlainText=1,e.Snippet=2}(w||(e.InsertTextFormat=w={})),e.CompletionItemTag=k,function(e){e.Deprecated=1}(k||(e.CompletionItemTag=k={})),e.CompletionItem=N,function(e){e.create=function(e){return{label:e}}}(N||(e.CompletionItem=N={})),e.CompletionList=D,function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(D||(e.CompletionList=D={})),e.MarkedString=A,function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return J.string(t)||J.objectLiteral(t)&&J.string(t.language)&&J.string(t.value)}}(A||(e.MarkedString=A={})),e.Hover=I,function(e){e.is=function(e){var t=e;return!!t&&J.objectLiteral(t)&&(O.is(t.contents)||A.is(t.contents)||J.typedArray(t.contents,A.is))&&(void 0===e.range||n.is(e.range))}}(I||(e.Hover=I={})),e.ParameterInformation=L,function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(L||(e.ParameterInformation=L={})),e.SignatureInformation=R,function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return J.defined(t)&&(i.documentation=t),J.defined(n)?i.parameters=n:i.parameters=[],i}}(R||(e.SignatureInformation=R={})),e.DocumentHighlightKind=F,function(e){e.Text=1,e.Read=2,e.Write=3}(F||(e.DocumentHighlightKind=F={})),e.DocumentHighlight=M,function(e){e.create=function(e,t){var n={range:e};return J.number(t)&&(n.kind=t),n}}(M||(e.DocumentHighlight=M={})),e.SymbolKind=j,function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(j||(e.SymbolKind=j={})),e.SymbolTag=P,function(e){e.Deprecated=1}(P||(e.SymbolTag=P={})),e.SymbolInformation=V,function(e){e.create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(V||(e.SymbolInformation=V={})),e.DocumentSymbol=U,function(e){e.create=function(e,t,n,r,i,o){var a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){var t=e;return t&&J.string(t.name)&&J.number(t.kind)&&n.is(t.range)&&n.is(t.selectionRange)&&(void 0===t.detail||J.string(t.detail))&&(void 0===t.deprecated||J.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))}}(U||(e.DocumentSymbol=U={})),e.CodeActionKind=B,function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(B||(e.CodeActionKind=B={})),e.CodeActionContext=$,function(e){e.create=function(e,t){var n={diagnostics:e};return null!=t&&(n.only=t),n},e.is=function(e){var t=e;return J.defined(t)&&J.typedArray(t.diagnostics,p.is)&&(void 0===t.only||J.typedArray(t.only,J.string))}}($||(e.CodeActionContext=$={})),e.CodeAction=H,function(e){e.create=function(e,t,n){var r={title:e};return h.is(t)?r.command=t:r.edit=t,void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&J.string(t.title)&&(void 0===t.diagnostics||J.typedArray(t.diagnostics,p.is))&&(void 0===t.kind||J.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||h.is(t.command))&&(void 0===t.isPreferred||J.boolean(t.isPreferred))&&(void 0===t.edit||T.is(t.edit))}}(H||(e.CodeAction=H={})),e.CodeLens=q,function(e){e.create=function(e,t){var n={range:e};return J.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return J.defined(t)&&n.is(t.range)&&(J.undefined(t.command)||h.is(t.command))}}(q||(e.CodeLens=q={})),e.FormattingOptions=G,function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return J.defined(t)&&J.number(t.tabSize)&&J.boolean(t.insertSpaces)}}(G||(e.FormattingOptions=G={})),e.DocumentLink=K,function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return J.defined(t)&&n.is(t.range)&&(J.undefined(t.target)||J.string(t.target))}}(K||(e.DocumentLink=K={})),e.SelectionRange=z,function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var r=t;return void 0!==r&&n.is(r.range)&&(void 0===r.parent||e.is(r.parent))}}(z||(e.SelectionRange=z={})),e.EOL=["\n","\r\n","\r"],e.TextDocument=Q,function(e){e.create=function(e,t,n,r){return new X(e,t,n,r)},e.is=function(e){var t=e;return!!(J.defined(t)&&J.string(t.uri)&&(J.undefined(t.languageId)||J.string(t.languageId))&&J.number(t.lineCount)&&J.func(t.getText)&&J.func(t.positionAt)&&J.func(t.offsetAt))},e.applyEdits=function(e,t){for(var n=e.getText(),r=function e(t,n){if(t.length<=1)return t;var r=t.length/2|0,i=t.slice(0,r),o=t.slice(r);e(i,n),e(o,n);for(var a=0,s=0,l=0;a<i.length&&s<o.length;){var u=n(i[a],o[s]);t[l++]=u<=0?i[a++]:o[s++]}for(;a<i.length;)t[l++]=i[a++];for(;s<o.length;)t[l++]=o[s++];return t}(t,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=n.length,o=r.length-1;o>=0;o--){var a=r[o],s=e.offsetAt(a.range.start),l=e.offsetAt(a.range.end);if(!(l<=i))throw new Error("Overlapping edit");n=n.substring(0,s)+a.newText+n.substring(l,n.length),i=s}return n}}(Q||(e.TextDocument=Q={}));var J,X=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(0===i)return t.create(0,e);for(;r<i;){var o=Math.floor((r+i)/2);n[o]>e?i=o:r=o+1}var a=r-1;return t.create(a,e-n[a])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(J||(J={}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(65),n(11)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParseRules=e.LexRules=e.isIgnored=void 0,e.isIgnored=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,e.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/};const r={Document:[(0,t.list)("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return n.Kind.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[o("query"),(0,t.opt)(a("def")),(0,t.opt)("VariableDefinitions"),(0,t.list)("Directive"),"SelectionSet"],Mutation:[o("mutation"),(0,t.opt)(a("def")),(0,t.opt)("VariableDefinitions"),(0,t.list)("Directive"),"SelectionSet"],Subscription:[o("subscription"),(0,t.opt)(a("def")),(0,t.opt)("VariableDefinitions"),(0,t.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,t.p)("("),(0,t.list)("VariableDefinition"),(0,t.p)(")")],VariableDefinition:["Variable",(0,t.p)(":"),"Type",(0,t.opt)("DefaultValue")],Variable:[(0,t.p)("$","variable"),a("variable")],DefaultValue:[(0,t.p)("="),"Value"],SelectionSet:[(0,t.p)("{"),(0,t.list)("Selection"),(0,t.p)("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[a("property"),(0,t.p)(":"),a("qualifier"),(0,t.opt)("Arguments"),(0,t.list)("Directive"),(0,t.opt)("SelectionSet")],Field:[a("property"),(0,t.opt)("Arguments"),(0,t.list)("Directive"),(0,t.opt)("SelectionSet")],Arguments:[(0,t.p)("("),(0,t.list)("Argument"),(0,t.p)(")")],Argument:[a("attribute"),(0,t.p)(":"),"Value"],FragmentSpread:[(0,t.p)("..."),a("def"),(0,t.list)("Directive")],InlineFragment:[(0,t.p)("..."),(0,t.opt)("TypeCondition"),(0,t.list)("Directive"),"SelectionSet"],FragmentDefinition:[o("fragment"),(0,t.opt)((0,t.butNot)(a("def"),[o("on")])),"TypeCondition",(0,t.list)("Directive"),"SelectionSet"],TypeCondition:[o("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,t.t)("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[(0,t.t)("Name","builtin")],NullValue:[(0,t.t)("Name","keyword")],EnumValue:[a("string-2")],ListValue:[(0,t.p)("["),(0,t.list)("Value"),(0,t.p)("]")],ObjectValue:[(0,t.p)("{"),(0,t.list)("ObjectField"),(0,t.p)("}")],ObjectField:[a("attribute"),(0,t.p)(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[(0,t.p)("["),"Type",(0,t.p)("]"),(0,t.opt)((0,t.p)("!"))],NonNullType:["NamedType",(0,t.opt)((0,t.p)("!"))],NamedType:[(i="atom",{style:i,match:e=>"Name"===e.kind,update(e,t){e.prevState&&e.prevState.prevState&&(e.name=t.value,e.prevState.prevState.type=t.value)}})],Directive:[(0,t.p)("@","meta"),a("meta"),(0,t.opt)("Arguments")],DirectiveDef:[o("directive"),(0,t.p)("@","meta"),a("meta"),(0,t.opt)("ArgumentsDef"),o("on"),(0,t.list)("DirectiveLocation",(0,t.p)("|"))],InterfaceDef:[o("interface"),a("atom"),(0,t.opt)("Implements"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("FieldDef"),(0,t.p)("}")],Implements:[o("implements"),(0,t.list)("NamedType",(0,t.p)("&"))],DirectiveLocation:[a("string-2")],SchemaDef:[o("schema"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("OperationTypeDef"),(0,t.p)("}")],OperationTypeDef:[a("keyword"),(0,t.p)(":"),a("atom")],ScalarDef:[o("scalar"),a("atom"),(0,t.list)("Directive")],ObjectTypeDef:[o("type"),a("atom"),(0,t.opt)("Implements"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("FieldDef"),(0,t.p)("}")],FieldDef:[a("property"),(0,t.opt)("ArgumentsDef"),(0,t.p)(":"),"Type",(0,t.list)("Directive")],ArgumentsDef:[(0,t.p)("("),(0,t.list)("InputValueDef"),(0,t.p)(")")],InputValueDef:[a("attribute"),(0,t.p)(":"),"Type",(0,t.opt)("DefaultValue"),(0,t.list)("Directive")],UnionDef:[o("union"),a("atom"),(0,t.list)("Directive"),(0,t.p)("="),(0,t.list)("UnionMember",(0,t.p)("|"))],UnionMember:["NamedType"],EnumDef:[o("enum"),a("atom"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("EnumValueDef"),(0,t.p)("}")],EnumValueDef:[a("string-2"),(0,t.list)("Directive")],InputDef:[o("input"),a("atom"),(0,t.list)("Directive"),(0,t.p)("{"),(0,t.list)("InputValueDef"),(0,t.p)("}")],ExtendDef:[o("extend"),"ObjectTypeDef"]};var i;function o(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function a(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}e.ParseRules=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.opt=function(e){return{ofRule:e}},e.list=function(e,t){return{ofRule:e,isList:!0,separator:t}},e.butNot=function(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e},e.t=function(e,t){return{style:t,match:t=>t.kind===e}},e.p=function(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(29)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefinitionQueryResultForNamedType=function(e,t,a){return n(this,void 0,void 0,(function*(){const n=t.name.value,s=a.filter(({definition:e})=>e.name&&e.name.value===n);if(0===s.length)throw Error("Definition not found for GraphQL type "+n);const l=s.map(({filePath:e,content:t,definition:n})=>function(e,t,n){const a=n.name;return r(a,"Expected ASTNode to have a Name."),{path:e,position:o(t,n),range:i(t,n),name:a.value||"",language:"GraphQL",projectRoot:e}}(e||"",t,n));return{definitions:l,queryRange:l.map(n=>i(e,t))}}))},e.getDefinitionQueryResultForFragmentSpread=function(e,t,r){return n(this,void 0,void 0,(function*(){const n=t.name.value,o=r.filter(({definition:e})=>e.name.value===n);if(0===o.length)throw Error("Definition not found for GraphQL fragment "+n);const s=o.map(({filePath:e,content:t,definition:n})=>a(e||"",t,n));return{definitions:s,queryRange:s.map(n=>i(e,t))}}))},e.getDefinitionQueryResultForDefinitionNode=function(e,t,n){return{definitions:[a(e,t,n)],queryRange:n.name?[i(t,n.name)]:[]}},e.LANGUAGE=void 0;var n=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function r(e,t){if(!e)throw new Error(t)}function i(e,n){const i=n.loc;return r(i,"Expected ASTNode to have a location."),(0,t.locToRange)(e,i)}function o(e,n){const i=n.loc;return r(i,"Expected ASTNode to have a location."),(0,t.offsetToPosition)(e,i.start)}function a(e,t,n){const r=n.name;if(!r)throw Error("Expected ASTNode to have a Name.");return{path:e,position:o(t,n),range:i(t,n),name:r.value||"",language:"GraphQL",projectRoot:e}}e.LANGUAGE="GraphQL"})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collectVariables=function(e,n){const r=Object.create(null);return n.definitions.forEach(n=>{if("OperationDefinition"===n.kind){const i=n.variableDefinitions;i&&i.forEach(({variable:n,type:i})=>{const o=(0,t.typeFromAST)(e,i);o?r[n.name.value]=o:i.kind===t.Kind.NAMED_TYPE&&"Float"===i.name.value&&(r[n.name.value]=t.GraphQLFloat)})}}),r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11),n(48),n(29)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDiagnostics=function(e,n=null,r,i,a){let l=null;a&&(e+="string"==typeof a?"\n\n"+a:"\n\n"+a.reduce((e,n)=>e+=(0,t.print)(n)+"\n\n",""));try{l=(0,t.parse)(e)}catch(t){const n=c(t.locations[0],e);return[{severity:o.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}return s(l,n,r,i)},e.validateQuery=s,e.getRange=c,e.DIAGNOSTIC_SEVERITY=e.SEVERITY=void 0;const i={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"};e.SEVERITY=i;const o={[i.Error]:1,[i.Warning]:2,[i.Information]:3,[i.Hint]:4};e.DIAGNOSTIC_SEVERITY=o;const a=(e,t)=>{if(!e)throw new Error(t)};function s(e,n=null,i,a){if(!n)return[];const s=l((0,r.validateWithCustomRules)(n,e,i,a),e=>u(e,o.Error,"Validation")),c=l((0,t.validate)(n,e,[t.NoDeprecatedCustomRule]),e=>u(e,o.Warning,"Deprecation"));return s.concat(c)}function l(e,t){return Array.prototype.concat.apply([],e.map(t))}function u(e,t,n){if(!e.nodes)return[];const i=[];return e.nodes.forEach(o=>{const s="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(s){a(e.locations,"GraphQL validation error requires locations.");const o=e.locations[0],l=function(e){const t=e.loc;return a(t,"Expected ASTNode to have a location."),t}(s),u=o.column+(l.end-l.start);i.push({source:"GraphQL: "+n,message:e.message,severity:t,range:new r.Range(new r.Position(o.line-1,o.column-1),new r.Position(o.line-1,u))})}}),i}function c(e,t){const i=(0,n.onlineParser)(),o=i.startState(),s=t.split("\n");a(s.length>=e.line,"Query text must have more lines than where the error happened");let l=null;for(let t=0;t<e.line;t++)for(l=new n.CharacterStream(s[t]);!l.eol()&&"invalidchar"!==i.token(l,o););a(l,"Expected Parser stream to be available.");const u=e.line-1,c=l.getStartOfToken(),f=l.getCurrentPosition();return new r.Range(new r.Position(u,c),new r.Position(u,f))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11),n(29)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOutline=function(e){let o;try{o=(0,t.parse)(e)}catch(e){return null}const a=function(e){const t=t=>({representativeName:t.name,startPosition:(0,n.offsetToPosition)(e,t.loc.start),endPosition:(0,n.offsetToPosition)(e,t.loc.end),kind:t.kind,children:t.selectionSet||t.fields||t.values||t.arguments||[]});return{Field:e=>{const n=e.alias?[i("plain",e.alias),i("plain",": ")]:[];return n.push(i("plain",e.name)),Object.assign({tokenizedText:n},t(e))},OperationDefinition:e=>Object.assign({tokenizedText:[i("keyword",e.operation),i("whitespace"," "),i("class-name",e.name)]},t(e)),Document:e=>e.definitions,SelectionSet:e=>function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r],r);Array.isArray(i)?n.push(...i):n.push(i)}return n}(e.selections,e=>e.kind===r?e.selectionSet:e),Name:e=>e.value,FragmentDefinition:e=>Object.assign({tokenizedText:[i("keyword","fragment"),i("whitespace"," "),i("class-name",e.name)]},t(e)),InterfaceTypeDefinition:e=>Object.assign({tokenizedText:[i("keyword","interface"),i("whitespace"," "),i("class-name",e.name)]},t(e)),EnumTypeDefinition:e=>Object.assign({tokenizedText:[i("keyword","enum"),i("whitespace"," "),i("class-name",e.name)]},t(e)),EnumValueDefinition:e=>Object.assign({tokenizedText:[i("plain",e.name)]},t(e)),ObjectTypeDefinition:e=>Object.assign({tokenizedText:[i("keyword","type"),i("whitespace"," "),i("class-name",e.name)]},t(e)),InputObjectTypeDefinition:e=>Object.assign({tokenizedText:[i("keyword","input"),i("whitespace"," "),i("class-name",e.name)]},t(e)),FragmentSpread:e=>Object.assign({tokenizedText:[i("plain","..."),i("class-name",e.name)]},t(e)),InputValueDefinition:e=>Object.assign({tokenizedText:[i("plain",e.name)]},t(e)),FieldDefinition:e=>Object.assign({tokenizedText:[i("plain",e.name)]},t(e)),InlineFragment:e=>e.selectionSet}}(e);return{outlineTrees:(0,t.visit)(o,{leave:e=>void 0!==a&&e.kind in a?a[e.kind](e):null})}};const{INLINE_FRAGMENT:r}=t.Kind;function i(e,t){return{kind:e,value:t}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11),n(47)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t){t.useMarkdown&&c(e,"```graphql\n")}function i(e,t){t.useMarkdown&&c(e,"\n```")}function o(e,t,n){if(!t.fieldDef)return;const r=t.fieldDef.name;"__"!==r.slice(0,2)&&(l(e,t,n,t.parentType),c(e,".")),c(e,r)}function a(e,t,n){t.directiveDef&&c(e,"@"+t.directiveDef.name)}function s(e,t,n,r){c(e,": "),l(e,t,n,r)}function l(e,n,r,i){i&&(i instanceof t.GraphQLNonNull?(l(e,n,r,i.ofType),c(e,"!")):i instanceof t.GraphQLList?(c(e,"["),l(e,n,r,i.ofType),c(e,"]")):c(e,i.name))}function u(e,t,n){if(!n)return;const r="string"==typeof n.description?n.description:null;r&&(c(e,"\n\n"),c(e,r)),function(e,t,n){if(!n)return;const r=n.deprecationReason?n.deprecationReason:null;r&&(c(e,"\n\n"),c(e,"Deprecated: "),c(e,r))}(e,0,n)}function c(e,t){e.push(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.getHoverInformation=function(e,t,f,d,p){const h=d||(0,n.getTokenAtPosition)(t,f);if(!e||!h||!h.state)return"";const m=h.state,g=m.kind,v=m.step,y=(0,n.getTypeInfo)(e,h.state),b=Object.assign(Object.assign({},p),{schema:e});if("Field"===g&&0===v&&y.fieldDef||"AliasedField"===g&&2===v&&y.fieldDef){const e=[];return r(e,b),function(e,t,n){o(e,t,n),s(e,t,n,t.type)}(e,y,b),i(e,b),u(e,0,y.fieldDef),e.join("").trim()}if("Directive"===g&&1===v&&y.directiveDef){const e=[];return r(e,b),a(e,y),i(e,b),u(e,0,y.directiveDef),e.join("").trim()}if("Argument"===g&&0===v&&y.argDef){const e=[];return r(e,b),function(e,t,n){if(t.directiveDef?a(e,t):t.fieldDef&&o(e,t,n),!t.argDef)return;const r=t.argDef.name;c(e,"("),c(e,r),s(e,t,n,t.inputType),c(e,")")}(e,y,b),i(e,b),u(e,0,y.argDef),e.join("").trim()}if("EnumValue"===g&&y.enumValue&&"description"in y.enumValue){const e=[];return r(e,b),function(e,t,n){if(!t.enumValue)return;const r=t.enumValue.name;l(e,t,n,t.inputType),c(e,"."),c(e,r)}(e,y,b),i(e,b),u(e,0,y.enumValue),e.join("").trim()}if("NamedType"===g&&y.type&&"description"in y.type){const e=[];return r(e,b),l(e,y,b,y.type),i(e,b),u(e,0,y.type),e.join("").trim()}return""}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=n(135)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports.encode=n(136),e.exports.decode=n(137),e.exports.format=n(138),e.exports.parse=n(139)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\0-\x1F\x7F-\x9F]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",n="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r=new RegExp("^(?:"+t+"|"+n+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),i=new RegExp("^(?:"+t+"|"+n+")");e.exports.HTML_TAG_RE=r,e.exports.HTML_OPEN_CLOSE_TAG_RE=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,a,s=[],l=t.length;for(n=0;n<l;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&s.push(o.token-1));for(;s.length;){for(r=(n=s.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}e.exports.tokenize=function(e,t){var n,r,i,o,a=e.pos,s=e.src.charCodeAt(a);if(t)return!1;if(126!==s)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(s),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:s,length:0,jump:n/2,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,a,s;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?a+a:a,o.content="",(o=e.tokens[i.token]).type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?a+a:a,o.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}e.exports.tokenize=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,jump:n,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},e.exports.postProcess=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(e,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(e,r[n].delimiters)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e}))}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function l(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function u(t,r,i,a){var s=n(t);if(s.query)return c(t,r);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var p=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),p&&(p.style.opacity=1),c(t,r.shiftKey,(function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((p=r).style.opacity=.4)})))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){f(e)},onKeyDown:i})}(t,d(t),u,h,(function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),l(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))})),a&&u&&(l(t,s,u),c(t,r))}else o(t,d(t),"Search for:",u,(function(e){e&&!s.query&&t.operation((function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),c(t,r)}))}))}function c(t,r,o){t.operation((function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))}))}function f(e){e.operation((function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))}))}function d(e){return'<span class="CodeMirror-search-label">'+e.phrase("Search:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}function p(e,t,n){e.operation((function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,(function(e,t){return o[t]})))}else r.replace(n)}))}function h(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,l='<span class="CodeMirror-search-label">'+(t?e.phrase("Replace all:"):e.phrase("Replace:"))+"</span>";o(e,l+function(e){return' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use /re/ syntax for regexp search)")+"</span>"}(e),l,r,(function(n){n&&(n=s(n),o(e,function(e){return'<span class="CodeMirror-search-label">'+e.phrase("With:")+'</span> <input type="text" style="width: 10em" class="CodeMirror-search-field"/>'}(e),e.phrase("Replace with:"),"",(function(r){if(r=a(r),t)p(e,n,r);else{f(e);var o=i(e,n,e.getCursor("from")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return'<span class="CodeMirror-search-label">'+e.phrase("Replace?")+"</span> <button>"+e.phrase("Yes")+"</button> <button>"+e.phrase("No")+"</button> <button>"+e.phrase("All")+"</button> <button>"+e.phrase("Stop")+"</button> "}(e),e.phrase("Replace?"),[function(){l(t)},s,function(){p(e,n,r)}]))},l=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,(function(t,n){return e[n]}))),s()};s()}})))}))}}e.commands.find=function(e){f(e),u(e)},e.commands.findPersistent=function(e){f(e),u(e,!1,!0)},e.commands.findPersistentNext=function(e){u(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){u(e,!0,!0,!0)},e.commands.findNext=u,e.commands.findPrev=function(e){u(e,!0)},e.commands.clearSearch=f,e.commands.replace=h,e.commands.replaceAll=function(e){h(e,!0)}}(n(10),n(30),n(31))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(7),o=e(n(81));function a(e,t,n){return n===i.SchemaMetaFieldDef.name&&e.getQueryType()===t?i.SchemaMetaFieldDef:n===i.TypeMetaFieldDef.name&&e.getQueryType()===t?i.TypeMetaFieldDef:n===i.TypeNameMetaFieldDef.name&&r.isCompositeType(t)?i.TypeNameMetaFieldDef:t&&t.getFields?t.getFields()[n]:void 0}t.default=function(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return o.default(t,(function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?a(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=n.type?r.getNamedType(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":var i=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&a(e,n.parentType,t.prevState.name):null:null;n.argDefs=i?i.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(var o=0;o<n.argDefs.length;o++)if(n.argDefs[o].name===t.name){n.argDef=n.argDefs[o];break}n.inputType=n.argDef&&n.argDef.type;break;case"EnumValue":var s=n.inputType?r.getNamedType(n.inputType):null;n.enumValue=s instanceof r.GraphQLEnumType?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(s.getValues(),(function(e){return e.value===t.name})):null;break;case"ListValue":var l=n.inputType?r.getNullableType(n.inputType):null;n.inputType=l instanceof r.GraphQLList?l.ofType:null;break;case"ObjectValue":var u=n.inputType?r.getNamedType(n.inputType):null;n.objectFieldDefs=u instanceof r.GraphQLInputObjectType?u.getFields():null;break;case"ObjectField":var c=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=c&&c.type;break;case"NamedType":n.type=t.name?e.getType(t.name):null}})),n}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=[],r=e;r&&r.kind;)n.push(r),r=r.prevState;for(var i=n.length-1;i>=0;i--)t(n[i])}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTypeReference=t.getEnumValueReference=t.getArgumentReference=t.getDirectiveReference=t.getFieldReference=void 0;var e=n(11);function r(e){return"__"===e.name.slice(0,2)}t.getFieldReference=function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:r(e.fieldDef)?null:e.parentType}},t.getDirectiveReference=function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}},t.getArgumentReference=function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:r(e.fieldDef)?null:e.parentType}},t.getEnumValueReference=function(t){return{kind:"EnumValue",value:t.enumValue||void 0,type:t.inputType?e.getNamedType(t.inputType):void 0}},t.getTypeReference=function(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(10));function i(e,t){var n=e.state.info,i=t.target||t.srcElement;if(i instanceof HTMLElement&&"SPAN"===i.nodeName&&void 0===n.hoverTimeout){var o=i.getBoundingClientRect(),a=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(l,u)},s=function(){r.default.off(document,"mousemove",a),r.default.off(e.getWrapperElement(),"mouseout",s),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},l=function(){r.default.off(document,"mousemove",a),r.default.off(e.getWrapperElement(),"mouseout",s),n.hoverTimeout=void 0,function(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),i=e.state.info.options,o=i.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var s=o(a,i,e,n);s&&function(e,t,n){var i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(n),document.body.appendChild(i);var o=i.getBoundingClientRect(),a=window.getComputedStyle(i),s=o.right-o.left+parseFloat(a.marginLeft)+parseFloat(a.marginRight),l=o.bottom-o.top+parseFloat(a.marginTop)+parseFloat(a.marginBottom),u=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(u=t.top-l),u<0&&(u=t.bottom);var c,f=Math.max(0,window.innerWidth-s-15);f>t.left&&(f=t.left),i.style.opacity="1",i.style.top=u+"px",i.style.left=f+"px";var d=function(){clearTimeout(c)},p=function(){clearTimeout(c),c=setTimeout(h,200)},h=function(){r.default.off(i,"mouseover",d),r.default.off(i,"mouseout",p),r.default.off(e.getWrapperElement(),"mouseout",p),i.style.opacity?(i.style.opacity="0",setTimeout((function(){i.parentNode&&i.parentNode.removeChild(i)}),600)):i.parentNode&&i.parentNode.removeChild(i)};r.default.on(i,"mouseover",d),r.default.on(i,"mouseout",p),r.default.on(e.getWrapperElement(),"mouseout",p)}(e,t,s)}}}(e,o)},u=function(e){var t=e.state.info.options;return t&&t.hoverTime||500}(e);n.hoverTimeout=setTimeout(l,u),r.default.on(document,"mousemove",a),r.default.on(e.getWrapperElement(),"mouseout",s)}}r.default.defineOption("info",!1,(function(e,t,n){if(n&&n!==r.default.Init){var o=e.state.info.onMouseOver;r.default.off(e.getWrapperElement(),"mouseover",o),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var a=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);a.onMouseOver=i.bind(null,e),r.default.on(e.getWrapperElement(),"mouseover",a.onMouseOver)}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(11)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({field:e}){return"defaultValue"in e&&void 0!==e.defaultValue?t.default.createElement("span",null," = ",t.default.createElement("span",{className:"arg-default-value"},(r=(0,n.astFromValue)(e.defaultValue,e.type))?(0,n.print)(r):"")):null;var r},t=(r=t)&&r.__esModule?r:{default:r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t.apply(this,r)},e)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(221),n(11)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=(i=t)&&i.__esModule?i:{default:i},e.default=class{constructor(e,i){this.storage=e,this.maxHistoryLength=i,r(this,"queries",void 0),r(this,"history",void 0),r(this,"favorite",void 0),r(this,"shouldSaveQuery",(e,t,r,i)=>{if(!e)return!1;try{(0,n.parse)(e)}catch(e){return!1}if(e.length>1e5)return!1;if(!i)return!0;if(JSON.stringify(e)===JSON.stringify(i.query)){if(JSON.stringify(t)===JSON.stringify(i.variables)){if(JSON.stringify(r)===JSON.stringify(i.headers))return!1;if(r&&!i.headers)return!1}if(t&&!i.variables)return!1}return!0}),r(this,"fetchAllQueries",()=>{const e=this.history.fetchAll(),t=this.favorite.fetchAll();return e.concat(t)}),r(this,"updateHistory",(e,t,n,r)=>{if(this.shouldSaveQuery(e,t,n,this.history.fetchRecent())){this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)}}),r(this,"toggleFavorite",(e,t,n,r,i,o)=>{const a={query:e,variables:t,headers:n,operationName:r,label:i};this.favorite.contains(a)?o&&(a.favorite=!1,this.favorite.delete(a)):(a.favorite=!0,this.favorite.push(a)),this.queries=[...this.history.items,...this.favorite.items]}),r(this,"editLabel",(e,t,n,r,i,o)=>{const a={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit({...a,favorite:o}):this.history.edit(a),this.queries=[...this.history.items,...this.favorite.items]}),this.history=new t.default("queries",this.storage,this.maxHistoryLength),this.favorite=new t.default("favorites",this.storage,null),this.queries=this.fetchAllQueries()}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),i=n(8),o=n(23),a=n(1);function s(e,t){switch(e.kind){case a.a.NULL:return null;case a.a.INT:return parseInt(e.value,10);case a.a.FLOAT:return parseFloat(e.value);case a.a.STRING:case a.a.ENUM:case a.a.BOOLEAN:return e.value;case a.a.LIST:return e.values.map(e=>s(e,t));case a.a.OBJECT:return Object(o.a)(e.fields,e=>e.name.value,e=>s(e.value,t));case a.a.VARIABLE:return null==t?void 0:t[e.name.value]}Object(i.a)(!1,"Unexpected value node: "+Object(r.a)(e))}},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(89),n(90),n(98),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(108)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s,l,u,c,f,d,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,p.GraphiQL.createFetcher=n.createGraphiQLFetcher;var h=p.GraphiQL;e.default=h})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=function(e){var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function f(){}function d(){}function p(){}var h={};h[i]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(C([])));g&&g!==t&&n.call(g,i)&&(h=g);var v=p.prototype=f.prototype=Object.create(h);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function T(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=v.constructor=p,p.constructor=d,d.displayName=s(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),v[i]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(91)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(92),n(93)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={createGraphiQLFetcher:!0};Object.defineProperty(e,"createGraphiQLFetcher",{enumerable:!0,get:function(){return n.createGraphiQLFetcher}}),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&(Object.prototype.hasOwnProperty.call(r,n)||n in e&&e[n]===t[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(94)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createGraphiQLFetcher=function(e){let n;if(null!==typeof window&&(null===window||void 0===window?void 0:window.fetch)&&(n=window.fetch),null!==(null==e?void 0:e.enableIncrementalDelivery)&&!1===e.enableIncrementalDelivery||(e.enableIncrementalDelivery=!0),e.fetch&&(n=e.fetch),!n)throw Error("No valid fetcher implementation available");const r=(0,t.createSimpleFetcher)(e,n),i=(0,t.getWsFetcher)(e),o=e.enableIncrementalDelivery?(0,t.createMultipartFetcher)(e,n):r;return(n,a)=>{if("IntrospectionQuery"===n.operationName)return(e.schemaFetcher||r)(n,a);if((0,t.isSubscriptionWithName)(null==a?void 0:a.documentAST,n.operationName)){if(!i)throw Error("Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. "+(e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."));return i(n)}return o(n,a)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11),n(95),n(96),n(97)],void 0===(o="function"==typeof(r=function(e,t,n,r,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getWsFetcher=e.createMultipartFetcher=e.createLegacyWebsocketsFetcher=e.createWebsocketsFetcherFromClient=e.createWebsocketsFetcherFromUrl=e.createSimpleFetcher=e.isSubscriptionWithName=void 0;var o=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},a=function(e){return this instanceof a?(this.v=e,this):new a(e)},s=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}},l=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||l(e,t)}))})}function l(e,t){try{(n=i[e](t)).value instanceof a?Promise.resolve(n.value.v).then(u,c):f(o[0][2],n)}catch(e){f(o[0][3],e)}var n}function u(e){l("next",e)}function c(e){l("throw",e)}function f(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}};e.isSubscriptionWithName=(e,n)=>{let r=!1;return(0,t.visit)(e,{OperationDefinition(e){var t;n===(null===(t=e.name)||void 0===t?void 0:t.value)&&"subscription"===e.operation&&(r=!0)}}),r},e.createSimpleFetcher=(e,t)=>(n,r)=>o(void 0,void 0,void 0,(function*(){return(yield t(e.url,{method:"POST",body:JSON.stringify(n),headers:Object.assign(Object.assign({"content-type":"application/json"},e.headers),null==r?void 0:r.headers)})).json()}));const u=(e,t)=>{let n;try{return n=(0,r.createClient)({url:e,connectionParams:t}),c(n)}catch(t){console.error(`Error creating websocket client for:\n${e}\n\n${t}`)}};e.createWebsocketsFetcherFromUrl=u;const c=e=>t=>(0,i.makeAsyncIterableIteratorFromSink)(n=>e.subscribe(t,Object.assign(Object.assign({},n),{error:e=>{e instanceof Error?n.error(e):e instanceof CloseEvent?n.error(new Error(`Socket closed with event ${e.code} ${e.reason||""}`.trim())):n.error(new Error(e.map(({message:e})=>e).join(", ")))}})));e.createWebsocketsFetcherFromClient=c;const f=e=>t=>{const n=e.request(t);return(0,i.makeAsyncIterableIteratorFromSink)(e=>n.subscribe(e).unsubscribe)};e.createLegacyWebsocketsFetcher=f,e.createMultipartFetcher=(e,t)=>function(r,o){return l(this,arguments,(function*(){var l,u;const c=yield a(t(e.url,{method:"POST",body:JSON.stringify(r),headers:Object.assign(Object.assign({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),null==o?void 0:o.headers)}).then(e=>(0,n.meros)(e,{multiple:!0})));if(!(0,i.isAsyncIterable)(c))return yield a(yield yield a(c.json()));try{for(var f,d=s(c);!(f=yield a(d.next())).done;){const e=f.value;if(e.some(e=>!e.json)){const t=e.map(e=>`Headers::\n${e.headers}\n\nBody::\n${e.body}`);throw new Error("Expected multipart chunks to be of json type. got:\n"+t)}yield yield a(e.map(e=>e.body))}}catch(e){l={error:e}}finally{try{f&&!f.done&&(u=d.return)&&(yield a(u.call(d)))}finally{if(l)throw l.error}}}))},e.getWsFetcher=e=>{if(e.wsClient)return c(e.wsClient);if(e.subscriptionUrl)return u(e.subscriptionUrl,e.wsConnectionParams);const t=e.legacyClient||e.legacyWsClient;return t?f(t):void 0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";n.r(t),n.d(t,"meros",(function(){return i}));const r=new TextDecoder;async function i(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;const n=e.headers.get("content-type");if(!n||!~n.indexOf("multipart/mixed"))return e;const i=n.indexOf("boundary=");return async function*(e,t,n){const i=e.getReader(),o=!n||!n.multiple;let a="",s=!0,l=[];try{let e;e:for(;!(e=await i.read()).done;){const n=r.decode(e.value),i=n.indexOf(t);let u=a.length;for(a+=n,~i?u+=i:u=a.indexOf(t),l=[];~u;){const e=a.substring(0,u),n=a.substring(u+t.length);if(s)s=!1;else{const t={},r=e.indexOf("\r\n\r\n"),i=a.slice(0,r).toString().trim().split(/\r\n/);let s;for(;s=i.shift();)s=s.split(": "),t[s.shift().toLowerCase()]=s.join(": ");let u=e.substring(r+"\r\n\r\n".length,e.lastIndexOf("\r\n")),c=!1;if(s=t["content-type"],s&&~s.indexOf("application/json"))try{u=JSON.parse(u),c=!0}catch(e){}if(s={headers:t,body:u,json:c},o?yield s:l.push(s),"--"===n.substring(0,2))break e}a=n,u=a.indexOf(t)}l.length&&(yield l)}}finally{l.length&&(yield l),i.releaseLock()}}(e.body,"--"+(~i?n.substring(i+9).trim().replace(/['"]/g,""):"-"),t)}},function(e,t,n){(function(n){var r,i,o;!function(n,a){i=[],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,(function(){"use strict";(function(e){const t=Object.prototype.hasOwnProperty;function r(e){return"object"==typeof e&&null!==e}function i(e,n){return t.call(e,n)}function o(e,n){return t.call(e,n)&&r(e[n])}function a(e,n){return t.call(e,n)&&"string"==typeof e[n]}function s(e,t){return e.length<124?e:t}var l,u;function c(t){if(r(t)){if(!a(t,"type"))return!1;switch(t.type){case e.MessageType.ConnectionInit:return!i(t,"payload")||void 0===t.payload||r(t.payload);case e.MessageType.ConnectionAck:case e.MessageType.Ping:case e.MessageType.Pong:return!i(t,"payload")||void 0===t.payload||r(t.payload);case e.MessageType.Subscribe:return a(t,"id")&&o(t,"payload")&&(!i(t.payload,"operationName")||void 0===t.payload.operationName||null===t.payload.operationName||"string"==typeof t.payload.operationName)&&a(t.payload,"query")&&(!i(t.payload,"variables")||void 0===t.payload.variables||null===t.payload.variables||o(t.payload,"variables"))&&(!i(t.payload,"extensions")||void 0===t.payload.extensions||null===t.payload.extensions||o(t.payload,"extensions"));case e.MessageType.Next:return a(t,"id")&&o(t,"payload");case e.MessageType.Error:return a(t,"id")&&(n=t.payload,Array.isArray(n)&&n.length>0&&n.every(e=>"message"in e));case e.MessageType.Complete:return a(t,"id");default:return!1}}var n;return!1}function f(e,t){if(c(e))return e;if("string"!=typeof e)throw new Error("Message not parsable");const n=JSON.parse(e,t);if(!c(n))throw new Error("Invalid message");return n}function d(e,t){if(!c(e))throw new Error("Cannot stringify invalid message");return JSON.stringify(e,t)}function p(e){return r(e)&&"code"in e&&"reason"in e}e.CloseCode=void 0,(l=e.CloseCode||(e.CloseCode={}))[l.InternalServerError=4500]="InternalServerError",l[l.InternalClientError=4005]="InternalClientError",l[l.BadRequest=4400]="BadRequest",l[l.BadResponse=4004]="BadResponse",l[l.Unauthorized=4401]="Unauthorized",l[l.Forbidden=4403]="Forbidden",l[l.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",l[l.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",l[l.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",l[l.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",l[l.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",e.MessageType=void 0,(u=e.MessageType||(e.MessageType={})).ConnectionInit="connection_init",u.ConnectionAck="connection_ack",u.Ping="ping",u.Pong="pong",u.Subscribe="subscribe",u.Next="next",u.Error="error",u.Complete="complete",e.GRAPHQL_TRANSPORT_WS_PROTOCOL="graphql-transport-ws",e.createClient=function(t){const{url:r,connectionParams:i,lazy:o=!0,onNonLazyError:a=console.error,lazyCloseTimeout:l=0,keepAlive:u=0,disablePong:c,connectionAckWaitTimeout:h=0,retryAttempts:m=5,retryWait:g=async function(e){let t=1e3;for(let n=0;n<e;n++)t*=2;await new Promise(e=>setTimeout(e,t+Math.floor(2700*Math.random()+300)))},isFatalConnectionProblem:v=(e=>!p(e)),on:y,webSocketImpl:b,generateID:T=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:E,jsonMessageReviver:_}=t;let x;if(b){if(!("function"==typeof(C=b)&&"constructor"in C&&"CLOSED"in C&&"CLOSING"in C&&"CONNECTING"in C&&"OPEN"in C))throw new Error("Invalid WebSocket implementation provided");x=b}else"undefined"!=typeof WebSocket?x=WebSocket:void 0!==n?x=n.WebSocket||n.MozWebSocket:"undefined"!=typeof window&&(x=window.WebSocket||window.MozWebSocket);var C;if(!x)throw new Error("WebSocket implementation missing");const O=x,S=(()=>{const e=(()=>{const e={};return{on:(t,n)=>(e[t]=n,()=>{delete e[t]}),emit(t){var n;"id"in t&&(null===(n=e[t.id])||void 0===n||n.call(e,t))}}})(),t={connecting:(null==y?void 0:y.connecting)?[y.connecting]:[],opened:(null==y?void 0:y.opened)?[y.opened]:[],connected:(null==y?void 0:y.connected)?[y.connected]:[],ping:(null==y?void 0:y.ping)?[y.ping]:[],pong:(null==y?void 0:y.pong)?[y.pong]:[],message:(null==y?void 0:y.message)?[e.emit,y.message]:[e.emit],closed:(null==y?void 0:y.closed)?[y.closed]:[],error:(null==y?void 0:y.error)?[y.error]:[]};return{onMessage:e.on,on(e,n){const r=t[e];return r.push(n),()=>{r.splice(r.indexOf(n),1)}},emit(e,...n){for(const r of[...t[e]])r(...n)}}})();function w(e){const t=[S.on("error",n=>{t.forEach(e=>e()),e(n)}),S.on("closed",n=>{t.forEach(e=>e()),e(n)})]}let k,N=0,D=!1,A=0,I=!1;async function L(){const[t,n]=await(null!=k?k:k=new Promise((t,n)=>(async()=>{if(D){if(await g(A),!N)return k=void 0,n({code:1e3,reason:"All Subscriptions Gone"});A++}S.emit("connecting");const o=new O("function"==typeof r?await r():r,"graphql-transport-ws");let a,l;function p(){isFinite(u)&&u>0&&(clearTimeout(l),l=setTimeout(()=>{o.readyState===O.OPEN&&(o.send(d({type:e.MessageType.Ping})),S.emit("ping",!1,void 0))},u))}w(e=>{k=void 0,clearTimeout(a),clearTimeout(l),n(e)}),o.onerror=e=>S.emit("error",e),o.onclose=e=>S.emit("closed",e),o.onopen=async()=>{try{S.emit("opened",o);const t="function"==typeof i?await i():i;o.send(d(t?{type:e.MessageType.ConnectionInit,payload:t}:{type:e.MessageType.ConnectionInit},E)),isFinite(h)&&h>0&&(a=setTimeout(()=>{o.close(e.CloseCode.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},h)),p()}catch(t){S.emit("error",t),o.close(e.CloseCode.InternalClientError,s(t instanceof Error?t.message:new Error(t).message,"Internal client error"))}};let m=!1;o.onmessage=({data:n})=>{try{const r=f(n,_);if(S.emit("message",r),"ping"===r.type||"pong"===r.type)return S.emit(r.type,!0,r.payload),void("pong"===r.type?p():c||(o.send(d(r.payload?{type:e.MessageType.Pong,payload:r.payload}:{type:e.MessageType.Pong})),S.emit("pong",!1,r.payload)));if(m)return;if(r.type!==e.MessageType.ConnectionAck)throw new Error("First message cannot be of type "+r.type);clearTimeout(a),m=!0,S.emit("connected",o,r.payload),D=!1,A=0,t([o,new Promise((e,t)=>w(t))])}catch(t){o.onmessage=null,S.emit("error",t),o.close(e.CloseCode.BadResponse,s(t instanceof Error?t.message:new Error(t).message,"Bad response"))}}})()));t.readyState===O.CLOSING&&await n;let o=()=>{};const a=new Promise(e=>o=e);return[t,o,Promise.race([a.then(()=>{if(!N){const e=()=>t.close(1e3,"Normal Closure");isFinite(l)&&l>0?setTimeout(()=>{N||t.readyState!==O.OPEN||e()},l):e()}}),n])]}function R(t){if(p(t)&&(n=t.code,![1e3,1001,1006,1005,1012,1013,1013].includes(n)&&n>=1e3&&n<=1999||[e.CloseCode.InternalServerError,e.CloseCode.InternalClientError,e.CloseCode.BadRequest,e.CloseCode.BadResponse,e.CloseCode.Unauthorized,e.CloseCode.SubprotocolNotAcceptable,e.CloseCode.SubscriberAlreadyExists,e.CloseCode.TooManyInitialisationRequests].includes(t.code)))throw t;var n;if(I)return!1;if(p(t)&&1e3===t.code)return N>0;if(!m||A>=m)throw t;if(v(t))throw t;return D=!0}return o||(async()=>{for(N++;;)try{const[,,e]=await L();await e}catch(e){try{if(!R(e))return}catch(e){return null==a?void 0:a(e)}}})(),{on:S.on,subscribe(t,n){const r=T();let i=!1,o=!1,a=()=>{N--,i=!0};return(async()=>{for(N++;;)try{const[s,l,u]=await L();if(i)return l();const c=S.onMessage(r,t=>{switch(t.type){case e.MessageType.Next:return void n.next(t.payload);case e.MessageType.Error:return o=!0,i=!0,n.error(t.payload),void a();case e.MessageType.Complete:return i=!0,void a()}});return s.send(d({id:r,type:e.MessageType.Subscribe,payload:t},E)),a=()=>{i||s.readyState!==O.OPEN||s.send(d({id:r,type:e.MessageType.Complete},E)),N--,i=!0,l()},void await u.finally(c)}catch(e){if(!R(e))return}})().then(()=>{o||n.complete()}).catch(e=>{n.error(e)}),()=>{i||a()}},async dispose(){if(I=!0,k){const[e]=await k;e.close(1e3,"Normal Closure")}}}},e.isMessage=c,e.parseMessage=f,e.stringifyMessage=d,Object.defineProperty(e,"__esModule",{value:!0})})(t)}))}).call(this,n(44))},function(e,t,n){"use strict";function r(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}n.r(t),n.d(t,"applyAsyncIterableIteratorToSink",(function(){return l})),n.d(t,"isAsyncIterable",(function(){return u})),n.d(t,"makeAsyncIterableIteratorFromSink",(function(){return s})),n.d(t,"makePushPullAsyncIterableIterator",(function(){return a}));const i=Symbol(),o=Symbol();function a(){let e=!0;const t=[];let n=r();const a=r(),s=async function*(){for(;;)if(t.length>0)yield t.shift();else{const e=await Promise.race([n.promise,a.promise]);if(e===i)break;if(e!==o)throw e}}();const l=s.return.bind(s);s.return=(...t)=>(e=!1,a.resolve(i),l(...t));const u=s.throw.bind(s);return s.throw=t=>(e=!1,a.resolve(t),u(t)),{pushValue:function(i){!1!==e&&(t.push(i),n.resolve(o),n=r())},asyncIterableIterator:s}}const s=e=>{const{pushValue:t,asyncIterableIterator:n}=a(),r=e({next:e=>{t(e)},complete:()=>{n.return()},error:e=>{n.throw(e)}}),i=n.return;let o=void 0;return n.return=()=>(void 0===o&&(r(),o=i()),o),n};function l(e,t){return(async()=>{try{for await(const n of e)t.next(n);t.complete()}catch(e){t.error(e)}})(),()=>{var t;null===(t=e.return)||void 0===t||t.call(e)}}function u(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator&&Symbol.asyncIterator in e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(r){var i,o,a,s;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,s=function(e,t,n,i,o,a,s,l,u,c,f,d,p,h,m,g,v,y,b,T,E,_,x,C,O,S,w){"use strict";function k(e){return e&&e.__esModule?e:{default:e}}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}if(Object.defineProperty(e,"__esModule",{value:!0}),e.GraphiQL=void 0,t=k(t),i=k(i),v=k(v),y=k(y),b=k(b),T=k(T),E=k(E),C=k(C),w=k(w),parseInt(t.default.version.slice(0,2),10)<16)throw Error(["GraphiQL 0.18.0 and after is not compatible with React 15 or below.","If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:","https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49"].join("\n"));const D=e=>JSON.stringify(e,null,2),A=e=>e instanceof n.GraphQLError?e.toString():e instanceof Error?(e=>({...e,message:e.message,stack:e.stack}))(e):e;class I extends t.default.Component{static formatResult(e){return JSON.stringify(e,null,2)}constructor(e){var t,r,a,s,l;if(super(e),N(this,"_editorQueryID",0),N(this,"_storage",void 0),N(this,"_introspectionQuery",void 0),N(this,"_introspectionQueryName",void 0),N(this,"_introspectionQuerySansSubscriptions",void 0),N(this,"codeMirrorSizer",void 0),N(this,"componentIsMounted",void 0),N(this,"docExplorerComponent",void 0),N(this,"graphiqlContainer",void 0),N(this,"resultComponent",void 0),N(this,"variableEditorComponent",void 0),N(this,"headerEditorComponent",void 0),N(this,"_queryHistory",void 0),N(this,"_historyStore",void 0),N(this,"editorBarComponent",void 0),N(this,"queryEditorComponent",void 0),N(this,"resultViewerElement",void 0),N(this,"safeSetState",(e,t)=>{this.componentIsMounted&&this.setState(e,t)}),N(this,"handleClickReference",e=>{this.setState({docExplorerOpen:!0},()=>{this.docExplorerComponent&&this.docExplorerComponent.showDocForReference(e)}),this._storage.set("docExplorerOpen",JSON.stringify(this.state.docExplorerOpen))}),N(this,"handleRunQuery",async e=>{this._editorQueryID++;const t=this._editorQueryID,n=this.autoCompleteLeafs()||this.state.query,r=this.state.variables,i=this.state.headers,o=this.state.shouldPersistHeaders;let a=this.state.operationName;e&&e!==a&&(a=e,this.handleEditOperationName(a));try{this.setState({isWaitingForResponse:!0,response:void 0,operationName:a}),this._storage.set("operationName",a),this._queryHistory?this._queryHistory.onUpdateHistory(n,r,i,a):this._historyStore&&this._historyStore.updateHistory(n,r,i,a);let e={data:{}};const s=await this._fetchQuery(n,r,i,a,o,n=>{if(t===this._editorQueryID){let t=!!Array.isArray(n)&&n;if(!t&&"string"!=typeof n&&null!==n&&"hasNext"in n&&(t=[n]),t){var r;const n={data:e.data},i=[...(null===(r=e)||void 0===r?void 0:r.errors)||[],...t.map(e=>e.errors).flat().filter(Boolean)];i.length&&(n.errors=i);for(const r of t){const{path:t,data:i,errors:o,...a}=r;if(t){if(!i)throw new Error("Expected part to contain a data property, but got "+r);(0,S.dset)(n.data,t,i)}else i&&(n.data=r.data);e={...n,...a}}this.setState({isWaitingForResponse:!1,response:I.formatResult(e)})}else this.setState({isWaitingForResponse:!1,response:I.formatResult(n)})}});this.setState({subscription:s})}catch(e){this.setState({isWaitingForResponse:!1,response:e.message})}}),N(this,"handleStopQuery",()=>{const e=this.state.subscription;this.setState({isWaitingForResponse:!1,subscription:null}),e&&e.unsubscribe()}),N(this,"handlePrettifyQuery",()=>{var e,t,r;const i=this.getQueryEditor(),o=null!==(e=null==i?void 0:i.getValue())&&void 0!==e?e:"",a=(0,n.print)((0,n.parse)(o));a!==o&&(null==i||i.setValue(a));const s=this.getVariableEditor(),l=null!==(t=null==s?void 0:s.getValue())&&void 0!==t?t:"";try{const e=JSON.stringify(JSON.parse(l),null,2);e!==l&&(null==s||s.setValue(e))}catch{}const u=this.getHeaderEditor(),c=null!==(r=null==u?void 0:u.getValue())&&void 0!==r?r:"";try{const e=JSON.stringify(JSON.parse(c),null,2);e!==c&&(null==u||u.setValue(e))}catch{}}),N(this,"handleMergeQuery",()=>{const e=this.getQueryEditor();if(!e.getValue())return;const t=this.state.documentAST;e.setValue((0,n.print)((0,C.default)(t,this.state.schema)))}),N(this,"handleEditQuery",(0,T.default)(100,e=>{const t=this._updateQueryFacts(e,this.state.operationName,this.state.operations,this.state.schema);if(this.setState({query:e,...t}),this._storage.set("query",e),this.props.onEditQuery)return this.props.onEditQuery(e,null==t?void 0:t.documentAST)})),N(this,"handleCopyQuery",()=>{const e=this.getQueryEditor(),t=e&&e.getValue();if(t)return(0,i.default)(t),this.props.onCopyQuery?this.props.onCopyQuery(t):void 0}),N(this,"_updateQueryFacts",(e,t,n,r)=>{const i=(0,o.getOperationFacts)(r,e);if(i){const e=(0,b.default)(n,t,i.operations),r=this.props.onEditOperationName;return r&&e&&t!==e&&r(e),{operationName:e,...i}}}),N(this,"handleEditVariables",e=>{this.setState({variables:e}),(0,T.default)(500,()=>this._storage.set("variables",e))(),this.props.onEditVariables&&this.props.onEditVariables(e)}),N(this,"handleEditHeaders",e=>{this.setState({headers:e}),this.props.shouldPersistHeaders&&(0,T.default)(500,()=>this._storage.set("headers",e))(),this.props.onEditHeaders&&this.props.onEditHeaders(e)}),N(this,"handleEditOperationName",e=>{const t=this.props.onEditOperationName;t&&t(e)}),N(this,"handleHintInformationRender",e=>{let t;e.addEventListener("click",this._onClickHintInformation),e.addEventListener("DOMNodeRemoved",t=()=>{e.removeEventListener("DOMNodeRemoved",t),e.removeEventListener("click",this._onClickHintInformation)})}),N(this,"handleEditorRunQuery",()=>{this._runQueryAtCursor()}),N(this,"_onClickHintInformation",e=>{if(null!=e&&e.currentTarget&&"className"in e.currentTarget&&"typeName"===e.currentTarget.className){const t=e.currentTarget.innerHTML,n=this.state.schema;if(n){const e=n.getType(t);e&&(this.setState({docExplorerOpen:!0},()=>{this.docExplorerComponent&&this.docExplorerComponent.showDoc(e)}),(0,T.default)(500,()=>this._storage.set("docExplorerOpen",JSON.stringify(this.state.docExplorerOpen)))())}}}),N(this,"handleToggleDocs",()=>{"function"==typeof this.props.onToggleDocs&&this.props.onToggleDocs(!this.state.docExplorerOpen),this._storage.set("docExplorerOpen",JSON.stringify(!this.state.docExplorerOpen)),this.setState({docExplorerOpen:!this.state.docExplorerOpen})}),N(this,"handleToggleHistory",()=>{"function"==typeof this.props.onToggleHistory&&this.props.onToggleHistory(!this.state.historyPaneOpen),this._storage.set("historyPaneOpen",JSON.stringify(!this.state.historyPaneOpen)),this.setState({historyPaneOpen:!this.state.historyPaneOpen})}),N(this,"handleSelectHistoryQuery",(e,t,n,r)=>{e&&this.handleEditQuery(e),t&&this.handleEditVariables(t),n&&this.handleEditHeaders(n),r&&this.handleEditOperationName(r)}),N(this,"handleResizeStart",e=>{if(!this._didClickDragBar(e))return;e.preventDefault();const t=e.clientX-(0,x.getLeft)(e.target);let n=e=>{if(0===e.buttons)return r();const n=this.editorBarComponent,i=e.clientX-(0,x.getLeft)(n)-t,o=n.clientWidth-i;this.setState({editorFlex:i/o}),(0,T.default)(500,()=>this._storage.set("editorFlex",JSON.stringify(this.state.editorFlex)))()},r=()=>{document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),n=null,r=null};document.addEventListener("mousemove",n),document.addEventListener("mouseup",r)}),N(this,"handleResetResize",()=>{this.setState({editorFlex:1}),this._storage.set("editorFlex",JSON.stringify(this.state.editorFlex))}),N(this,"handleDocsResizeStart",e=>{e.preventDefault();const t=this.state.docExplorerWidth,n=e.clientX-(0,x.getLeft)(e.target);let r=e=>{if(0===e.buttons)return i();const t=this.graphiqlContainer,r=e.clientX-(0,x.getLeft)(t)-n,o=t.clientWidth-r;o<100?("function"==typeof this.props.onToggleDocs&&this.props.onToggleDocs(!this.state.docExplorerOpen),this._storage.set("docExplorerOpen",JSON.stringify(this.state.docExplorerOpen)),this.setState({docExplorerOpen:!1})):(this.setState({docExplorerOpen:!0,docExplorerWidth:Math.min(o,650)}),(0,T.default)(500,()=>this._storage.set("docExplorerWidth",JSON.stringify(this.state.docExplorerWidth)))()),this._storage.set("docExplorerOpen",JSON.stringify(this.state.docExplorerOpen))},i=()=>{this.state.docExplorerOpen||(this.setState({docExplorerWidth:t}),(0,T.default)(500,()=>this._storage.set("docExplorerWidth",JSON.stringify(this.state.docExplorerWidth)))()),document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",i),r=null,i=null};document.addEventListener("mousemove",r),document.addEventListener("mouseup",i)}),N(this,"handleDocsResetResize",()=>{this.setState({docExplorerWidth:350}),(0,T.default)(500,()=>this._storage.set("docExplorerWidth",JSON.stringify(this.state.docExplorerWidth)))()}),N(this,"handleTabClickPropogation",e=>{e.preventDefault(),e.stopPropagation()}),N(this,"handleOpenHeaderEditorTab",e=>{this.setState({headerEditorActive:!0,variableEditorActive:!1,secondaryEditorOpen:!0})}),N(this,"handleOpenVariableEditorTab",e=>{this.setState({headerEditorActive:!1,variableEditorActive:!0,secondaryEditorOpen:!0})}),N(this,"handleSecondaryEditorResizeStart",e=>{e.preventDefault();let t=!1;const n=this.state.secondaryEditorOpen,r=this.state.secondaryEditorHeight,i=e.clientY-(0,x.getTop)(e.target);let o=e=>{if(0===e.buttons)return a();t=!0;const n=this.editorBarComponent,o=e.clientY-(0,x.getTop)(n)-i,s=n.clientHeight-o;s<60?this.setState({secondaryEditorOpen:!1,secondaryEditorHeight:r}):this.setState({secondaryEditorOpen:!0,secondaryEditorHeight:s}),(0,T.default)(500,()=>this._storage.set("secondaryEditorHeight",JSON.stringify(this.state.secondaryEditorHeight)))()},a=()=>{t||this.setState({secondaryEditorOpen:!n}),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",a),o=null,a=null};document.addEventListener("mousemove",o),document.addEventListener("mouseup",a)}),"function"!=typeof e.fetcher)throw new TypeError("GraphiQL requires a fetcher function.");this._storage=new y.default(e.storage);const u=null!==(t=e.maxHistoryLength)&&void 0!==t?t:20;this._historyStore=new w.default(this._storage,u),this.componentIsMounted=!1;const c=void 0!==e.query?e.query:this._storage.get("query")?this._storage.get("query"):void 0!==e.defaultQuery?e.defaultQuery:M,f=(0,o.getOperationFacts)(e.schema,c),d=void 0!==e.variables?e.variables:this._storage.get("variables"),p=void 0!==e.headers?e.headers:this._storage.get("headers"),h=void 0!==e.operationName?e.operationName:(0,b.default)(void 0,this._storage.get("operationName"),f&&f.operations);let m,g=e.docExplorerOpen||!1;this._storage.get("docExplorerOpen")&&(g="true"===this._storage.get("docExplorerOpen")),m=void 0!==e.defaultVariableEditorOpen?e.defaultVariableEditorOpen:void 0!==e.defaultSecondaryEditorOpen?e.defaultSecondaryEditorOpen:Boolean(d||p);const v=null===(r=e.headerEditorEnabled)||void 0===r||r,E=null!==(a=e.shouldPersistHeaders)&&void 0!==a&&a;let _=e.schema,k=e.response,D=void 0;if(_&&!this.props.dangerouslyAssumeSchemaIsValid){const e=(0,n.validateSchema)(_);e&&e.length>0&&(k=I.formatError(e),_=void 0,D=e)}this._introspectionQuery=(0,n.getIntrospectionQuery)({schemaDescription:!0,inputValueDeprecation:null!==(s=e.inputValueDeprecation)&&void 0!==s?s:void 0}),this._introspectionQueryName=null!==(l=e.introspectionQueryName)&&void 0!==l?l:O.introspectionQueryName,this._introspectionQuerySansSubscriptions=this._introspectionQuery.replace("subscriptionType { name }",""),this.state={schema:_,query:c,variables:d,headers:p,operationName:h,docExplorerOpen:g,schemaErrors:D,response:k,editorFlex:Number(this._storage.get("editorFlex"))||1,secondaryEditorOpen:m,secondaryEditorHeight:Number(this._storage.get("secondaryEditorHeight"))||200,variableEditorActive:"true"!==this._storage.get("variableEditorActive")&&!e.headerEditorEnabled||"true"!==this._storage.get("headerEditorActive"),headerEditorActive:"true"===this._storage.get("headerEditorActive"),headerEditorEnabled:v,shouldPersistHeaders:E,historyPaneOpen:"true"===this._storage.get("historyPaneOpen")||!1,docExplorerWidth:Number(this._storage.get("docExplorerWidth"))||350,isWaitingForResponse:!1,subscription:null,maxHistoryLength:u,...f}}componentDidMount(){this.componentIsMounted=!0,void 0===this.state.schema&&this.fetchSchema(),this.codeMirrorSizer=new v.default,r.g=this}UNSAFE_componentWillMount(){this.componentIsMounted=!1}UNSAFE_componentWillReceiveProps(e){let t=this.state.schema,r=this.state.query,i=this.state.variables,o=this.state.headers,a=this.state.operationName,s=this.state.response;if(void 0!==e.schema&&(t=e.schema),void 0!==e.query&&this.props.query!==e.query&&(r=e.query),void 0!==e.variables&&this.props.variables!==e.variables&&(i=e.variables),void 0!==e.headers&&this.props.headers!==e.headers&&(o=e.headers),void 0!==e.operationName&&(a=e.operationName),void 0!==e.response&&(s=e.response),r&&t&&(t!==this.state.schema||r!==this.state.query||a!==this.state.operationName)){if(!this.props.dangerouslyAssumeSchemaIsValid){const e=(0,n.validateSchema)(t);e&&e.length>0&&(this.handleSchemaErrors(e),t=void 0)}const e=this._updateQueryFacts(r,a,this.state.operations,t);void 0!==e&&(a=e.operationName,this.setState(e))}void 0===e.schema&&e.fetcher!==this.props.fetcher&&(t=void 0),this._storage.set("operationName",a),this.setState({schema:t,query:r,variables:i,headers:o,operationName:a,response:s},()=>{void 0===this.state.schema&&(this.docExplorerComponent&&this.docExplorerComponent.reset(),this.fetchSchema())})}componentDidUpdate(){this.codeMirrorSizer.updateSizes([this.queryEditorComponent,this.variableEditorComponent,this.headerEditorComponent,this.resultComponent])}render(){var e;const n=t.default.Children.toArray(this.props.children),r=(0,E.default)(n,e=>B(e,I.Logo))||t.default.createElement(I.Logo,null),i=(0,E.default)(n,e=>B(e,I.Toolbar))||t.default.createElement(I.Toolbar,null,t.default.createElement(l.ToolbarButton,{onClick:this.handlePrettifyQuery,title:"Prettify Query (Shift-Ctrl-P)",label:"Prettify"}),t.default.createElement(l.ToolbarButton,{onClick:this.handleMergeQuery,title:"Merge Query (Shift-Ctrl-M)",label:"Merge"}),t.default.createElement(l.ToolbarButton,{onClick:this.handleCopyQuery,title:"Copy Query (Shift-Ctrl-C)",label:"Copy"}),t.default.createElement(l.ToolbarButton,{onClick:this.handleToggleHistory,title:"Show History",label:"History"}),null!==(e=this.props.toolbar)&&void 0!==e&&e.additionalContent?this.props.toolbar.additionalContent:null),o=(0,E.default)(n,e=>B(e,I.Footer)),u={WebkitFlex:this.state.editorFlex,flex:this.state.editorFlex},c={display:"block",width:this.state.docExplorerWidth},v="docExplorerWrap"+(this.state.docExplorerWidth<200?" doc-explorer-narrow":""),y={display:this.state.historyPaneOpen?"block":"none",width:"230px",zIndex:7},b=this.state.secondaryEditorOpen,T={height:b?this.state.secondaryEditorHeight:void 0};return t.default.createElement("div",{ref:e=>{this.graphiqlContainer=e},className:"graphiql-container"},this.state.historyPaneOpen&&t.default.createElement("div",{className:"historyPaneWrap",style:y},t.default.createElement(g.QueryHistory,{ref:e=>{this._queryHistory=e},operationName:this.state.operationName,query:this.state.query,variables:this.state.variables,onSelectQuery:this.handleSelectHistoryQuery,storage:this._storage,maxHistoryLength:this.state.maxHistoryLength,queryID:this._editorQueryID},t.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleHistory,"aria-label":"Close History"},"✕"))),t.default.createElement("div",{className:"editorWrap"},t.default.createElement("div",{className:"topBarWrap"},t.default.createElement("div",{className:"topBar"},r,t.default.createElement(a.ExecuteButton,{isRunning:Boolean(this.state.subscription),onRun:this.handleRunQuery,onStop:this.handleStopQuery,operations:this.state.operations}),i),!this.state.docExplorerOpen&&t.default.createElement("button",{className:"docExplorerShow",onClick:this.handleToggleDocs,"aria-label":"Open Documentation Explorer"},"Docs")),t.default.createElement("div",{ref:e=>{this.editorBarComponent=e},className:"editorBar",onDoubleClick:this.handleResetResize,onMouseDown:this.handleResizeStart},t.default.createElement("div",{className:"queryWrap",style:u},t.default.createElement(f.QueryEditor,{ref:e=>{this.queryEditorComponent=e},schema:this.state.schema,validationRules:this.props.validationRules,value:this.state.query,onEdit:this.handleEditQuery,onHintInformationRender:this.handleHintInformationRender,onClickReference:this.handleClickReference,onCopyQuery:this.handleCopyQuery,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,externalFragments:this.props.externalFragments}),t.default.createElement("section",{className:"variable-editor secondary-editor",style:T,"aria-label":this.state.variableEditorActive?"Query Variables":"Request Headers"},t.default.createElement("div",{className:"secondary-editor-title variable-editor-title",id:"secondary-editor-title",style:{cursor:b?"row-resize":"n-resize"},onMouseDown:this.handleSecondaryEditorResizeStart},t.default.createElement("div",{style:{cursor:"pointer",color:this.state.variableEditorActive?"#000":"gray",display:"inline-block"},onClick:this.handleOpenVariableEditorTab,onMouseDown:this.handleTabClickPropogation},"Query Variables"),this.state.headerEditorEnabled&&t.default.createElement("div",{style:{cursor:"pointer",color:this.state.headerEditorActive?"#000":"gray",display:"inline-block",marginLeft:"20px"},onClick:this.handleOpenHeaderEditorTab,onMouseDown:this.handleTabClickPropogation},"Request Headers")),t.default.createElement(d.VariableEditor,{ref:e=>{this.variableEditorComponent=e},value:this.state.variables,variableToType:this.state.variableToType,onEdit:this.handleEditVariables,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.variableEditorActive}),this.state.headerEditorEnabled&&t.default.createElement(p.HeaderEditor,{ref:e=>{this.headerEditorComponent=e},value:this.state.headers,onEdit:this.handleEditHeaders,onHintInformationRender:this.handleHintInformationRender,onPrettifyQuery:this.handlePrettifyQuery,onMergeQuery:this.handleMergeQuery,onRunQuery:this.handleEditorRunQuery,editorTheme:this.props.editorTheme,readOnly:this.props.readOnly,active:this.state.headerEditorActive}))),t.default.createElement("div",{className:"resultWrap"},this.state.isWaitingForResponse&&t.default.createElement("div",{className:"spinner-container"},t.default.createElement("div",{className:"spinner"})),t.default.createElement(h.ResultViewer,{registerRef:e=>{this.resultViewerElement=e},ref:e=>{this.resultComponent=e},value:this.state.response,editorTheme:this.props.editorTheme,ResultsTooltip:this.props.ResultsTooltip,ImagePreview:s.ImagePreview}),o))),this.state.docExplorerOpen&&t.default.createElement("div",{className:v,style:c},t.default.createElement("div",{className:"docExplorerResizer",onDoubleClick:this.handleDocsResetResize,onMouseDown:this.handleDocsResizeStart}),t.default.createElement(m.DocExplorer,{ref:e=>{this.docExplorerComponent=e},schemaErrors:this.state.schemaErrors,schema:this.state.schema},t.default.createElement("button",{className:"docExplorerHide",onClick:this.handleToggleDocs,"aria-label":"Close Documentation Explorer"},"✕"))))}getQueryEditor(){if(this.queryEditorComponent)return this.queryEditorComponent.getCodeMirror()}getVariableEditor(){return this.variableEditorComponent?this.variableEditorComponent.getCodeMirror():null}getHeaderEditor(){return this.headerEditorComponent?this.headerEditorComponent.getCodeMirror():null}refresh(){this.queryEditorComponent&&this.queryEditorComponent.getCodeMirror().refresh(),this.variableEditorComponent&&this.variableEditorComponent.getCodeMirror().refresh(),this.headerEditorComponent&&this.headerEditorComponent.getCodeMirror().refresh(),this.resultComponent&&this.resultComponent.getCodeMirror().refresh()}autoCompleteLeafs(){const{insertions:e,result:t}=(0,_.fillLeafs)(this.state.schema,this.state.query,this.props.getDefaultFieldNames);if(e&&e.length>0){const n=this.getQueryEditor();n&&n.operation(()=>{const r=n.getCursor(),i=n.indexFromPos(r);n.setValue(t||"");let o=0;const a=e.map(({index:e,string:t})=>n.markText(n.posFromIndex(e+o),n.posFromIndex(e+(o+=t.length)),{className:"autoInsertedLeaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>a.forEach(e=>e.clear()),7e3);let s=i;e.forEach(({index:e,string:t})=>{e<i&&(s+=t.length)}),n.setCursor(n.posFromIndex(s))})}return t}fetchSchema(){const e=this.props.fetcher,t={shouldPersistHeaders:Boolean(this.props.shouldPersistHeaders),documentAST:this.state.documentAST};this.state.headers&&this.state.headers.trim().length>2?t.headers=JSON.parse(this.state.headers):this.props.headers&&(t.headers=JSON.parse(this.props.headers));const r=U(e({query:this._introspectionQuery,operationName:this._introspectionQueryName},t));j(r)?r.then(n=>{if("string"!=typeof n&&"data"in n)return n;const i=U(e({query:this._introspectionQuerySansSubscriptions,operationName:this._introspectionQueryName},t));if(!j(r))throw new Error("Fetcher did not return a Promise for introspection.");return i}).then(e=>{if(void 0===this.state.schema)if(e&&e.data&&"__schema"in(null==e?void 0:e.data)){let t=(0,n.buildClientSchema)(e.data);if(!this.props.dangerouslyAssumeSchemaIsValid){const e=(0,n.validateSchema)(t);e&&e.length>0&&(t=void 0,this.handleSchemaErrors(e))}if(t){const e=(0,o.getOperationFacts)(t,this.state.query);this.safeSetState({schema:t,...e,schemaErrors:void 0})}}else{const t="string"==typeof e?e:I.formatResult(e);this.handleSchemaErrors([t])}}).catch(e=>{this.handleSchemaErrors([e])}):this.setState({response:"Fetcher did not return a Promise for introspection."})}handleSchemaErrors(e){this.safeSetState({response:e?I.formatError(e):void 0,schema:void 0,schemaErrors:e})}async _fetchQuery(e,t,r,i,a,s){const l=this.props.fetcher;let u=null,c=null;try{u=t&&""!==t.trim()?JSON.parse(t):null}catch(e){throw new Error(`Variables are invalid JSON: ${e.message}.`)}if("object"!=typeof u)throw new Error("Variables are not a JSON object.");try{c=r&&""!==r.trim()?JSON.parse(r):null}catch(e){throw new Error(`Headers are invalid JSON: ${e.message}.`)}if("object"!=typeof c)throw new Error("Headers are not a JSON object.");if(this.props.externalFragments){const t=new Map;Array.isArray(this.props.externalFragments)?this.props.externalFragments.forEach(e=>{t.set(e.name.value,e)}):(0,n.visit)((0,n.parse)(this.props.externalFragments,{}),{FragmentDefinition(e){t.set(e.name.value,e)}});const r=(0,o.getFragmentDependenciesForAST)(this.state.documentAST,t);r.length>0&&(e+="\n"+r.map(e=>(0,n.print)(e)).join("\n"))}const f=l({query:e,variables:u,operationName:i},{headers:c,shouldPersistHeaders:a,documentAST:this.state.documentAST});return Promise.resolve(f).then(e=>P(e)?e.subscribe({next:s,error:e=>{this.safeSetState({isWaitingForResponse:!1,response:e?I.formatError(e):void 0,subscription:null})},complete:()=>{this.safeSetState({isWaitingForResponse:!1,subscription:null})}}):V(e)?((async()=>{try{for await(const t of e)s(t);this.safeSetState({isWaitingForResponse:!1,subscription:null})}catch(e){this.safeSetState({isWaitingForResponse:!1,response:e?I.formatError(e):void 0,subscription:null})}})(),{unsubscribe:()=>{var t,n;return null===(t=(n=e[Symbol.asyncIterator]()).return)||void 0===t?void 0:t.call(n)}}):(s(e),null)).catch(e=>(this.safeSetState({isWaitingForResponse:!1,response:e?I.formatError(e):void 0}),null))}_runQueryAtCursor(){if(this.state.subscription)return void this.handleStopQuery();let e;const t=this.state.operations;if(t){const n=this.getQueryEditor();if(n&&n.hasFocus()){const r=n.getCursor(),i=n.indexFromPos(r);for(let n=0;n<t.length;n++){const r=t[n];if(r.loc&&r.loc.start<=i&&r.loc.end>=i){e=r.name&&r.name.value;break}}}}this.handleRunQuery(e)}_didClickDragBar(e){if(0!==e.button||e.ctrlKey)return!1;let t=e.target;if(0!==t.className.indexOf("CodeMirror-gutter"))return!1;const n=this.resultViewerElement;for(;t;){if(t===n)return!0;t=t.parentNode}return!1}}function L(e){return t.default.createElement("div",{className:"title"},e.children||t.default.createElement("span",null,"Graph",t.default.createElement("em",null,"i"),"QL"))}function R(e){return t.default.createElement("div",{className:"toolbar",role:"toolbar","aria-label":"Editor Commands"},e.children)}function F(e){return t.default.createElement("div",{className:"footer"},e.children)}e.GraphiQL=I,N(I,"formatError",e=>Array.isArray(e)?D({errors:e.map(e=>A(e))}):D({errors:A(e)})),N(I,"Logo",L),N(I,"Toolbar",R),N(I,"Footer",F),N(I,"QueryEditor",f.QueryEditor),N(I,"VariableEditor",d.VariableEditor),N(I,"HeaderEditor",p.HeaderEditor),N(I,"ResultViewer",h.ResultViewer),N(I,"Button",l.ToolbarButton),N(I,"ToolbarButton",l.ToolbarButton),N(I,"Group",u.ToolbarGroup),N(I,"Menu",c.ToolbarMenu),N(I,"MenuItem",c.ToolbarMenuItem),L.displayName="GraphiQLLogo",R.displayName="GraphiQLToolbar",F.displayName="GraphiQLFooter";const M='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n#     {\n#       field(arg: "value") {\n#         subField\n#       }\n#     }\n#\n# Keyboard shortcuts:\n#\n#  Prettify Query:  Shift-Ctrl-P (or press the prettify button above)\n#\n#     Merge Query:  Shift-Ctrl-M (or press the merge button above)\n#\n#       Run Query:  Ctrl-Enter (or press the play button above)\n#\n#   Auto Complete:  Ctrl-Space (or just start typing)\n#\n\n';function j(e){return"object"==typeof e&&"function"==typeof e.then}function P(e){return"object"==typeof e&&"subscribe"in e&&"function"==typeof e.subscribe}function V(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}function U(e){return Promise.resolve(e).then(e=>{return V(e)?(n=e,new Promise((e,t)=>{var r;const i=null===(r=("return"in n?n:n[Symbol.asyncIterator]()).return)||void 0===r?void 0:r.bind(n);("next"in n?n:n[Symbol.asyncIterator]()).next.bind(n)().then(t=>{e(t.value),null==i||i()}).catch(e=>{t(e)})})):P(e)?(t=e,new Promise((e,n)=>{const r=t.subscribe({next:t=>{e(t),r.unsubscribe()},error:n,complete:()=>{n(new Error("no value resolved"))}})})):e;var t,n})}function B(e,t){var n;return!(null==e||null===(n=e.type)||void 0===n||!n.displayName||e.type.displayName!==t.displayName)||e.type===t}},o=[t,n(14),n(11),n(109),n(28),n(128),n(129),n(130),n(131),n(132),n(133),n(201),n(207),n(209),n(212),n(219),n(222),n(223),n(224),n(85),n(225),n(226),n(227),n(228),n(229),n(230),n(86)],void 0===(a="function"==typeof(i=s)?i.apply(t,o):i)||(e.exports=a)}).call(this,n(44))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(110),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var i,o,a,s,l,u,c=!1;n||(n={}),i=n.debug||!1;try{if(a=t(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(t){if(t.stopPropagation(),n.format)if(t.preventDefault(),void 0===t.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=r[n.format]||r.default;window.clipboardData.setData(o,e)}else t.clipboardData.clearData(),t.clipboardData.setData(n.format,e);n.onCopy&&(t.preventDefault(),n.onCopy(t.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(t){i&&console.error("unable to copy using execCommand: ",t),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),c=!0}catch(t){i&&console.error("unable to copy using clipboardData: ",t),i&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11),n(112),n(61),n(29),n(59)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageService=void 0,n=(a=n)&&a.__esModule?a:{default:a};const s=new Map;e.LanguageService=class{constructor({parser:e,schemas:n,parseOptions:a,exteralFragmentDefinitions:l,customValidationRules:u}){this._parser=t.parse,this._schemas=[],this._schemaCache=s,this._schemaLoader=o.defaultSchemaLoader,this._parseOptions=void 0,this._customValidationRules=void 0,this._exteralFragmentDefinitionNodes=null,this._exteralFragmentDefinitionsString=null,this.getCompletion=(e,t,n)=>{const i=this.getSchemaForFile(e);return!t||t.length<1||null==i||!i.schema?[]:(0,r.getAutocompleteSuggestions)(i.schema,t,n,void 0,this.getExternalFragmentDefinitions())},this.getDiagnostics=(e,t,n)=>{const i=this.getSchemaForFile(e);return!t||t.length<1||null==i||!i.schema?[]:(0,r.getDiagnostics)(t,i.schema,null!=n?n:this._customValidationRules,!1,this.getExternalFragmentDefinitions())},this.getHover=(e,t,n,i)=>{const o=this.getSchemaForFile(e);if(o&&(null==t?void 0:t.length)>3)return(0,r.getHoverInformation)(o.schema,t,n,void 0,{useMarkdown:!0,...i})},this.getVariablesJSONSchema=(e,t,n)=>{const r=this.getSchemaForFile(e);if(r&&t.length>3)try{const e=this.parse(t),o=(0,i.getOperationASTFacts)(e,r.schema);if(o&&o.variableToType)return(0,i.getVariablesJSONSchema)(o.variableToType,n)}catch(e){}return null},this._schemaLoader=o.defaultSchemaLoader,n&&(this._schemas=n),e&&(this._parser=e,this._cacheSchemas()),a&&(this._parseOptions=a),u&&(this._customValidationRules=u),l&&(Array.isArray(l)?this._exteralFragmentDefinitionNodes=l:this._exteralFragmentDefinitionsString=l)}_cacheSchemas(){this._schemas.forEach(e=>this._cacheSchema(e))}_cacheSchema(e){const t=this._schemaLoader(e,this.parse);return this._schemaCache.set(e.uri,{...e,schema:t})}getSchemaForFile(e){const t=this._schemas.find(t=>!!t.fileMatch&&t.fileMatch.some(t=>(0,n.default)(t)(e)));if(t){const e=this._schemaCache.get(t.uri);return e||this._cacheSchema(t).get(t.uri)}}getExternalFragmentDefinitions(){if(!this._exteralFragmentDefinitionNodes&&this._exteralFragmentDefinitionsString){const e=[];try{(0,t.visit)(this._parser(this._exteralFragmentDefinitionsString),{FragmentDefinition(t){e.push(t)}})}catch(e){throw Error("Failed parsing exteralFragmentDefinitions string:\n"+this._exteralFragmentDefinitionsString)}this._exteralFragmentDefinitionNodes=e}return this._exteralFragmentDefinitionNodes}async updateSchemas(e){this._schemas=e,this._cacheSchemas()}updateSchema(e){const t=this._schemas.findIndex(t=>t.uri===e.uri);t<0?console.warn("updateSchema could not find a schema in your config by that URI",e.uri):(this._schemas[t]=e,this._cacheSchema(e))}addSchema(e){this._schemas.push(e),this._cacheSchema(e)}parse(e,t){return this._parser(e,t||this._parseOptions)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=n(113)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";const t=n(45),r=n(114),i=n(115),o=n(46),a=n(36),s=(e,t,n=!1)=>{if(Array.isArray(e)){const r=e.map(e=>s(e,t,n));return e=>{for(const t of r){const n=t(e);if(n)return n}return!1}}const r=(i=e)&&"object"==typeof i&&!Array.isArray(i)&&e.tokens&&e.input;var i;if(""===e||"string"!=typeof e&&!r)throw new TypeError("Expected pattern to be a non-empty string");const a=t||{},l=o.isWindows(t),u=r?s.compileRe(e,t):s.makeRe(e,t,!1,!0),c=u.state;delete u.state;let f=()=>!1;if(a.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};f=s(a.ignore,e,n)}const d=(n,r=!1)=>{const{isMatch:i,match:o,output:d}=s.test(n,u,t,{glob:e,posix:l}),p={glob:e,state:c,regex:u,posix:l,input:n,output:d,match:o,isMatch:i};return"function"==typeof a.onResult&&a.onResult(p),!1===i?(p.isMatch=!1,!!r&&p):f(n)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof a.onMatch&&a.onMatch(p),!r||p)};return n&&(d.state=c),d};s.test=(e,t,n,{glob:r,posix:i}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const a=n||{},l=a.format||(i?o.toPosixSlashes:null);let u=e===r,c=u&&l?l(e):e;return!1===u&&(c=l?l(e):e,u=c===r),!1!==u&&!0!==a.capture||(u=!0===a.matchBase||!0===a.basename?s.matchBase(e,t,n,i):t.exec(c)),{isMatch:Boolean(u),match:u,output:c}},s.matchBase=(e,n,r,i=o.isWindows(r))=>(n instanceof RegExp?n:s.makeRe(n,r)).test(t.basename(e)),s.isMatch=(e,t,n)=>s(t,n)(e),s.parse=(e,t)=>Array.isArray(e)?e.map(e=>s.parse(e,t)):i(e,{...t,fastpaths:!1}),s.scan=(e,t)=>r(e,t),s.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;const i=t||{},o=i.contains?"":"^",a=i.contains?"":"$";let l=`${o}(?:${e.output})${a}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);const u=s.toRegex(l,t);return!0===r&&(u.state=e),u},s.makeRe=(e,t,n=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");const o=t||{};let a,l={negated:!1,fastpaths:!0},u="";return e.startsWith("./")&&(e=e.slice(2),u=l.prefix="./"),!1===o.fastpaths||"."!==e[0]&&"*"!==e[0]||(a=i.fastpaths(e,t)),void 0===a?(l=i(e,t),l.prefix=u+(l.prefix||"")):l.output=a,s.compileRe(l,t,n,r)},s.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},s.constants=a,e.exports=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";const t=n(46),{CHAR_ASTERISK:r,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:c,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:d,CHAR_PLUS:p,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:v}=n(36),y=e=>e===u||e===o,b=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,n)=>{const T=n||{},E=e.length-1,_=!0===T.parts||!0===T.scanToEnd,x=[],C=[],O=[];let S,w,k=e,N=-1,D=0,A=0,I=!1,L=!1,R=!1,F=!1,M=!1,j=!1,P=!1,V=!1,U=!1,B=0,$={value:"",depth:0,isGlob:!1};const H=()=>N>=E,q=()=>(S=w,k.charCodeAt(++N));for(;N<E;){let e;if(w=q(),w!==o){if(!0===j||w===c){for(B++;!0!==H()&&(w=q());)if(w!==o)if(w!==c){if(!0!==j&&w===s&&(w=q())===s){if(I=$.isBrace=!0,R=$.isGlob=!0,U=!0,!0===_)continue;break}if(!0!==j&&w===a){if(I=$.isBrace=!0,R=$.isGlob=!0,U=!0,!0===_)continue;break}if(w===m&&(B--,0===B)){j=!1,I=$.isBrace=!0,U=!0;break}}else B++;else P=$.backslashes=!0,q();if(!0===_)continue;break}if(w!==u){if(!0!==T.noext&&!0==(w===p||w===i||w===r||w===h||w===l)&&k.charCodeAt(N+1)===f){if(R=$.isGlob=!0,F=$.isExtglob=!0,U=!0,!0===_){for(;!0!==H()&&(w=q());)if(w!==o){if(w===g){R=$.isGlob=!0,U=!0;break}}else P=$.backslashes=!0,w=q();continue}break}if(w===r){if(S===r&&(M=$.isGlobstar=!0),R=$.isGlob=!0,U=!0,!0===_)continue;break}if(w===h){if(R=$.isGlob=!0,U=!0,!0===_)continue;break}if(w===d)for(;!0!==H()&&(e=q());)if(e!==o){if(e===v){if(L=$.isBracket=!0,R=$.isGlob=!0,U=!0,!0===_)continue;break}}else P=$.backslashes=!0,q();if(!0===T.nonegate||w!==l||N!==D){if(!0!==T.noparen&&w===f){if(R=$.isGlob=!0,!0===_){for(;!0!==H()&&(w=q());)if(w!==f){if(w===g){U=!0;break}}else P=$.backslashes=!0,w=q();continue}break}if(!0===R){if(U=!0,!0===_)continue;break}}else V=$.negated=!0,D++}else{if(x.push(N),C.push($),$={value:"",depth:0,isGlob:!1},!0===U)continue;if(S===s&&N===D+1){D+=2;continue}A=N+1}}else P=$.backslashes=!0,w=q(),w===c&&(j=!0)}!0===T.noext&&(F=!1,R=!1);let G=k,K="",z="";D>0&&(K=k.slice(0,D),k=k.slice(D),A-=D),G&&!0===R&&A>0?(G=k.slice(0,A),z=k.slice(A)):!0===R?(G="",z=k):G=k,G&&""!==G&&"/"!==G&&G!==k&&y(G.charCodeAt(G.length-1))&&(G=G.slice(0,-1)),!0===T.unescape&&(z&&(z=t.removeBackslashes(z)),G&&!0===P&&(G=t.removeBackslashes(G)));const Q={prefix:K,input:e,start:D,base:G,glob:z,isBrace:I,isBracket:L,isGlob:R,isExtglob:F,isGlobstar:M,negated:V};if(!0===T.tokens&&(Q.maxDepth=0,y(w)||C.push($),Q.tokens=C),!0===T.parts||!0===T.tokens){let t;for(let n=0;n<x.length;n++){const r=t?t+1:D,i=x[n],o=e.slice(r,i);T.tokens&&(0===n&&0!==D?(C[n].isPrefix=!0,C[n].value=K):C[n].value=o,b(C[n]),Q.maxDepth+=C[n].depth),0===n&&""===o||O.push(o),t=i}if(t&&t+1<e.length){const n=e.slice(t+1);O.push(n),T.tokens&&(C[C.length-1].value=n,b(C[C.length-1]),Q.maxDepth+=C[C.length-1].depth)}Q.slashes=x,Q.parts=O}return Q}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";const t=n(36),r=n(46),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:l}=t,u=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map(e=>r.escapeRegex(e)).join("..")}return n},c=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,f=(e,n)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=l[e]||e;const f={...n},d="number"==typeof f.maxLength?Math.min(i,f.maxLength):i;let p=e.length;if(p>d)throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${d}`);const h={type:"bos",value:"",output:f.prepend||""},m=[h],g=f.capture?"":"?:",v=r.isWindows(n),y=t.globChars(v),b=t.extglobChars(y),{DOT_LITERAL:T,PLUS_LITERAL:E,SLASH_LITERAL:_,ONE_CHAR:x,DOTS_SLASH:C,NO_DOT:O,NO_DOT_SLASH:S,NO_DOTS_SLASH:w,QMARK:k,QMARK_NO_DOT:N,STAR:D,START_ANCHOR:A}=y,I=e=>`(${g}(?:(?!${A}${e.dot?C:T}).)*?)`,L=f.dot?"":O,R=f.dot?k:N;let F=!0===f.bash?I(f):D;f.capture&&(F=`(${F})`),"boolean"==typeof f.noext&&(f.noextglob=f.noext);const M={input:e,index:-1,start:0,dot:!0===f.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:m};e=r.removePrefix(e,M),p=e.length;const j=[],P=[],V=[];let U,B=h;const $=()=>M.index===p-1,H=M.peek=(t=1)=>e[M.index+t],q=M.advance=()=>e[++M.index],G=()=>e.slice(M.index+1),K=(e="",t=0)=>{M.consumed+=e,M.index+=t},z=e=>{M.output+=null!=e.output?e.output:e.value,K(e.value)},Q=()=>{let e=1;for(;"!"===H()&&("("!==H(2)||"?"===H(3));)q(),M.start++,e++;return e%2!=0&&(M.negated=!0,M.start++,!0)},W=e=>{M[e]++,V.push(e)},Y=e=>{M[e]--,V.pop()},J=e=>{if("globstar"===B.type){const t=M.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||j.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(M.output=M.output.slice(0,-B.output.length),B.type="star",B.value="*",B.output=F,M.output+=B.output)}if(j.length&&"paren"!==e.type&&!b[e.value]&&(j[j.length-1].inner+=e.value),(e.value||e.output)&&z(e),B&&"text"===B.type&&"text"===e.type)return B.value+=e.value,void(B.output=(B.output||"")+e.value);e.prev=B,m.push(e),B=e},X=(e,t)=>{const n={...b[t],conditions:1,inner:""};n.prev=B,n.parens=M.parens,n.output=M.output;const r=(f.capture?"(":"")+n.open;W("parens"),J({type:e,value:t,output:M.output?"":x}),J({type:"paren",extglob:!0,value:q(),output:r}),j.push(n)},Z=e=>{let t=e.close+(f.capture?")":"");if("negate"===e.type){let n=F;e.inner&&e.inner.length>1&&e.inner.includes("/")&&(n=I(f)),(n!==F||$()||/^\)+$/.test(G()))&&(t=e.close=")$))"+n),"bos"===e.prev.type&&$()&&(M.negatedExtglob=!0)}J({type:"paren",extglob:!0,value:U,output:t}),Y("parens")};if(!1!==f.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let t=!1,i=e.replace(s,(e,n,r,i,o,a)=>"\\"===i?(t=!0,e):"?"===i?n?n+i+(o?k.repeat(o.length):""):0===a?R+(o?k.repeat(o.length):""):k.repeat(r.length):"."===i?T.repeat(r.length):"*"===i?n?n+i+(o?F:""):F:n?e:"\\"+e);return!0===t&&(i=!0===f.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),i===e&&!0===f.contains?(M.output=e,M):(M.output=r.wrapOutput(i,M,n),M)}for(;!$();){if(U=q(),"\0"===U)continue;if("\\"===U){const e=H();if("/"===e&&!0!==f.bash)continue;if("."===e||";"===e)continue;if(!e){U+="\\",J({type:"text",value:U});continue}const t=/^\\+/.exec(G());let n=0;if(t&&t[0].length>2&&(n=t[0].length,M.index+=n,n%2!=0&&(U+="\\")),!0===f.unescape?U=q()||"":U+=q()||"",0===M.brackets){J({type:"text",value:U});continue}}if(M.brackets>0&&("]"!==U||"["===B.value||"[^"===B.value)){if(!1!==f.posix&&":"===U){const e=B.value.slice(1);if(e.includes("[")&&(B.posix=!0,e.includes(":"))){const e=B.value.lastIndexOf("["),t=B.value.slice(0,e),n=B.value.slice(e+2),r=o[n];if(r){B.value=t+r,M.backtrack=!0,q(),h.output||1!==m.indexOf(B)||(h.output=x);continue}}}("["===U&&":"!==H()||"-"===U&&"]"===H())&&(U="\\"+U),"]"!==U||"["!==B.value&&"[^"!==B.value||(U="\\"+U),!0===f.posix&&"!"===U&&"["===B.value&&(U="^"),B.value+=U,z({value:U});continue}if(1===M.quotes&&'"'!==U){U=r.escapeRegex(U),B.value+=U,z({value:U});continue}if('"'===U){M.quotes=1===M.quotes?0:1,!0===f.keepQuotes&&J({type:"text",value:U});continue}if("("===U){W("parens"),J({type:"paren",value:U});continue}if(")"===U){if(0===M.parens&&!0===f.strictBrackets)throw new SyntaxError(c("opening","("));const e=j[j.length-1];if(e&&M.parens===e.parens+1){Z(j.pop());continue}J({type:"paren",value:U,output:M.parens?")":"\\)"}),Y("parens");continue}if("["===U){if(!0!==f.nobracket&&G().includes("]"))W("brackets");else{if(!0!==f.nobracket&&!0===f.strictBrackets)throw new SyntaxError(c("closing","]"));U="\\"+U}J({type:"bracket",value:U});continue}if("]"===U){if(!0===f.nobracket||B&&"bracket"===B.type&&1===B.value.length){J({type:"text",value:U,output:"\\"+U});continue}if(0===M.brackets){if(!0===f.strictBrackets)throw new SyntaxError(c("opening","["));J({type:"text",value:U,output:"\\"+U});continue}Y("brackets");const e=B.value.slice(1);if(!0===B.posix||"^"!==e[0]||e.includes("/")||(U="/"+U),B.value+=U,z({value:U}),!1===f.literalBrackets||r.hasRegexChars(e))continue;const t=r.escapeRegex(B.value);if(M.output=M.output.slice(0,-B.value.length),!0===f.literalBrackets){M.output+=t,B.value=t;continue}B.value=`(${g}${t}|${B.value})`,M.output+=B.value;continue}if("{"===U&&!0!==f.nobrace){W("braces");const e={type:"brace",value:U,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};P.push(e),J(e);continue}if("}"===U){const e=P[P.length-1];if(!0===f.nobrace||!e){J({type:"text",value:U,output:U});continue}let t=")";if(!0===e.dots){const e=m.slice(),n=[];for(let t=e.length-1;t>=0&&(m.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=u(n,f),M.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=M.output.slice(0,e.outputIndex),r=M.tokens.slice(e.tokensIndex);e.value=e.output="\\{",U=t="\\}",M.output=n;for(const e of r)M.output+=e.output||e.value}J({type:"brace",value:U,output:t}),Y("braces"),P.pop();continue}if("|"===U){j.length>0&&j[j.length-1].conditions++,J({type:"text",value:U});continue}if(","===U){let e=U;const t=P[P.length-1];t&&"braces"===V[V.length-1]&&(t.comma=!0,e="|"),J({type:"comma",value:U,output:e});continue}if("/"===U){if("dot"===B.type&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",m.pop(),B=h;continue}J({type:"slash",value:U,output:_});continue}if("."===U){if(M.braces>0&&"dot"===B.type){"."===B.value&&(B.output=T);const e=P[P.length-1];B.type="dots",B.output+=U,B.value+=U,e.dots=!0;continue}if(M.braces+M.parens===0&&"bos"!==B.type&&"slash"!==B.type){J({type:"text",value:U,output:T});continue}J({type:"dot",value:U,output:T});continue}if("?"===U){if((!B||"("!==B.value)&&!0!==f.noextglob&&"("===H()&&"?"!==H(2)){X("qmark",U);continue}if(B&&"paren"===B.type){const e=H();let t=U;if("<"===e&&!r.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===B.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(G()))&&(t="\\"+U),J({type:"text",value:U,output:t});continue}if(!0!==f.dot&&("slash"===B.type||"bos"===B.type)){J({type:"qmark",value:U,output:N});continue}J({type:"qmark",value:U,output:k});continue}if("!"===U){if(!0!==f.noextglob&&"("===H()&&("?"!==H(2)||!/[!=<:]/.test(H(3)))){X("negate",U);continue}if(!0!==f.nonegate&&0===M.index){Q();continue}}if("+"===U){if(!0!==f.noextglob&&"("===H()&&"?"!==H(2)){X("plus",U);continue}if(B&&"("===B.value||!1===f.regex){J({type:"plus",value:U,output:E});continue}if(B&&("bracket"===B.type||"paren"===B.type||"brace"===B.type)||M.parens>0){J({type:"plus",value:U});continue}J({type:"plus",value:E});continue}if("@"===U){if(!0!==f.noextglob&&"("===H()&&"?"!==H(2)){J({type:"at",extglob:!0,value:U,output:""});continue}J({type:"text",value:U});continue}if("*"!==U){"$"!==U&&"^"!==U||(U="\\"+U);const e=a.exec(G());e&&(U+=e[0],M.index+=e[0].length),J({type:"text",value:U});continue}if(B&&("globstar"===B.type||!0===B.star)){B.type="star",B.star=!0,B.value+=U,B.output=F,M.backtrack=!0,M.globstar=!0,K(U);continue}let t=G();if(!0!==f.noextglob&&/^\([^?]/.test(t)){X("star",U);continue}if("star"===B.type){if(!0===f.noglobstar){K(U);continue}const n=B.prev,r=n.prev,i="slash"===n.type||"bos"===n.type,o=r&&("star"===r.type||"globstar"===r.type);if(!0===f.bash&&(!i||t[0]&&"/"!==t[0])){J({type:"star",value:U,output:""});continue}const a=M.braces>0&&("comma"===n.type||"brace"===n.type),s=j.length&&("pipe"===n.type||"paren"===n.type);if(!i&&"paren"!==n.type&&!a&&!s){J({type:"star",value:U,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[M.index+4];if(n&&"/"!==n)break;t=t.slice(3),K("/**",3)}if("bos"===n.type&&$()){B.type="globstar",B.value+=U,B.output=I(f),M.output=B.output,M.globstar=!0,K(U);continue}if("slash"===n.type&&"bos"!==n.prev.type&&!o&&$()){M.output=M.output.slice(0,-(n.output+B.output).length),n.output="(?:"+n.output,B.type="globstar",B.output=I(f)+(f.strictSlashes?")":"|$)"),B.value+=U,M.globstar=!0,M.output+=n.output+B.output,K(U);continue}if("slash"===n.type&&"bos"!==n.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";M.output=M.output.slice(0,-(n.output+B.output).length),n.output="(?:"+n.output,B.type="globstar",B.output=`${I(f)}${_}|${_}${e})`,B.value+=U,M.output+=n.output+B.output,M.globstar=!0,K(U+q()),J({type:"slash",value:"/",output:""});continue}if("bos"===n.type&&"/"===t[0]){B.type="globstar",B.value+=U,B.output=`(?:^|${_}|${I(f)}${_})`,M.output=B.output,M.globstar=!0,K(U+q()),J({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-B.output.length),B.type="globstar",B.output=I(f),B.value+=U,M.output+=B.output,M.globstar=!0,K(U);continue}const n={type:"star",value:U,output:F};!0!==f.bash?!B||"bracket"!==B.type&&"paren"!==B.type||!0!==f.regex?(M.index!==M.start&&"slash"!==B.type&&"dot"!==B.type||("dot"===B.type?(M.output+=S,B.output+=S):!0===f.dot?(M.output+=w,B.output+=w):(M.output+=L,B.output+=L),"*"!==H()&&(M.output+=x,B.output+=x)),J(n)):(n.output=U,J(n)):(n.output=".*?","bos"!==B.type&&"slash"!==B.type||(n.output=L+n.output),J(n))}for(;M.brackets>0;){if(!0===f.strictBrackets)throw new SyntaxError(c("closing","]"));M.output=r.escapeLast(M.output,"["),Y("brackets")}for(;M.parens>0;){if(!0===f.strictBrackets)throw new SyntaxError(c("closing",")"));M.output=r.escapeLast(M.output,"("),Y("parens")}for(;M.braces>0;){if(!0===f.strictBrackets)throw new SyntaxError(c("closing","}"));M.output=r.escapeLast(M.output,"{"),Y("braces")}if(!0===f.strictSlashes||"star"!==B.type&&"bracket"!==B.type||J({type:"maybe_slash",value:"",output:_+"?"}),!0===M.backtrack){M.output="";for(const e of M.tokens)M.output+=null!=e.output?e.output:e.value,e.suffix&&(M.output+=e.suffix)}return M};f.fastpaths=(e,n)=>{const o={...n},a="number"==typeof o.maxLength?Math.min(i,o.maxLength):i,s=e.length;if(s>a)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${a}`);e=l[e]||e;const u=r.isWindows(n),{DOT_LITERAL:c,SLASH_LITERAL:f,ONE_CHAR:d,DOTS_SLASH:p,NO_DOT:h,NO_DOTS:m,NO_DOTS_SLASH:g,STAR:v,START_ANCHOR:y}=t.globChars(u),b=o.dot?m:h,T=o.dot?g:h,E=o.capture?"":"?:";let _=!0===o.bash?".*?":v;o.capture&&(_=`(${_})`);const x=e=>!0===e.noglobstar?_:`(${E}(?:(?!${y}${e.dot?p:c}).)*?)`,C=e=>{switch(e){case"*":return`${b}${d}${_}`;case".*":return`${c}${d}${_}`;case"*.*":return`${b}${_}${c}${d}${_}`;case"*/*":return`${b}${_}${f}${d}${T}${_}`;case"**":return b+x(o);case"**/*":return`(?:${b}${x(o)}${f})?${T}${d}${_}`;case"**/*.*":return`(?:${b}${x(o)}${f})?${T}${_}${c}${d}${_}`;case"**/.*":return`(?:${b}${x(o)}${f})?${c}${d}${_}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=C(t[1]);if(!n)return;return n+c+t[2]}}},O=r.removePrefix(e,{negated:!1,prefix:""});let S=C(O);return S&&!0!==o.strictSlashes&&(S+=f+"?"),S},e.exports=f})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=class{constructor(e){this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.substr(this._pos,e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=i&&i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._start=0,this._pos=0,this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(64),n(11)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e={eatWhitespace:e=>e.eatWhile(t.isIgnored),lexRules:t.LexRules,parseRules:t.ParseRules,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeperator:!1,prevState:null};return o(e.parseRules,t,n.Kind.DOCUMENT),t},token:(t,n)=>function(e,t,n){if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:l,parseRules:c,eatWhitespace:f,editorConfig:d}=n;if(t.rule&&0===t.rule.length?a(t):t.needsAdvance&&(t.needsAdvance=!1,s(t,!0)),e.sol()){const n=d&&d.tabSize||2;t.indentLevel=Math.floor(e.indentation()/n)}if(f(e))return"ws";const p=function(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(l,e);if(!p)return e.match(/\S+/)||e.match(/\s/),o(i,t,"Invalid"),"invalidchar";if("Comment"===p.kind)return o(i,t,"Comment"),"comment";const h=r({},t);if("Punctuation"===p.kind)if(/^[{([]/.test(p.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(p.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e[e.length-1]<t.indentLevel&&(t.indentLevel=e[e.length-1])}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(p,e):null:t.rule[t.step];if(t.needsSeperator&&(n=n&&(null==n?void 0:n.separator)),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){o(c,t,n);continue}if(n.match&&n.match(p))return n.update&&n.update(t,p),"Punctuation"===p.kind?s(t,!0):t.needsAdvance=!0,n.style}u(t)}return r(t,h),o(i,t,"Invalid"),"invalidchar"}(t,n,e)}};const i={Invalid:[],Comment:[]};function o(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeperator=!1}function a(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeperator=e.prevState.needsSeperator,e.prevState=e.prevState.prevState)}function s(e,t){if(l(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const t=n.separator;if(e.needsSeperator=!e.needsSeperator,!e.needsSeperator&&t.ofRule)return}if(t)return}for(e.needsSeperator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)a(e),e.rule&&(l(e)?e.rule&&e.rule[e.step].separator&&(e.needsSeperator=!e.needsSeperator):(e.needsSeperator=!1,e.step++))}function l(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function u(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)a(e);e.rule&&s(e,!1)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RuleKinds=e.AdditionalRuleKinds=void 0;const n={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type"};e.AdditionalRuleKinds=n;const r=Object.assign(Object.assign({},t.Kind),n);e.RuleKinds=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11),n(120)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.getFragmentDependenciesForAST=e.getFragmentDependencies=void 0,n=(r=n)&&r.__esModule?r:{default:r},e.getFragmentDependencies=(e,n)=>{if(!n)return[];let r;try{r=(0,t.parse)(e)}catch(e){return[]}return i(r,n)};const i=(e,r)=>{if(!r)return[];const i=new Map,o=new Set;(0,t.visit)(e,{FragmentDefinition(e){i.set(e.name.value,!0)},FragmentSpread(e){o.has(e.name.value)||o.add(e.name.value)}});const a=new Set;o.forEach(e=>{!i.has(e)&&r.has(e)&&a.add((0,n.default)(r.get(e)))});const s=[];return a.forEach(e=>{(0,t.visit)(e,{FragmentSpread(e){!o.has(e.name.value)&&r.get(e.name.value)&&(a.add((0,n.default)(r.get(e.name.value))),o.add(e.name.value))}}),i.has(e.name.value)||s.push(e)}),s};e.getFragmentDependenciesForAST=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t){e.push(t)}function r(e,r){const i=[];return r&&n(i,"```graphql\n"),function e(r,i){(0,t.isNonNullType)(i)?(e(r,i.ofType),n(r,"!")):(0,t.isListType)(i)?(n(r,"["),e(r,i.ofType),n(r,"]")):n(r,i.name)}(i,e),r&&n(i,"\n```"),i.join("")}Object.defineProperty(e,"__esModule",{value:!0}),e.getVariablesJSONSchema=function(e,n){const o={$schema:"https://json-schema.org/draft/2020-12/schema",type:"object",properties:{},required:[]};return e&&Object.entries(e).forEach(([e,a])=>{var s;const{definition:l,required:u,definitions:c}=function e(n,o){var a;let s=!1,l=Object.create(null);const u=Object.create(null);if("defaultValue"in n&&void 0!==n.defaultValue&&(l.default=n.defaultValue),(0,t.isEnumType)(n)&&(l.type="string",l.enum=n.getValues().map(e=>e.name)),(0,t.isScalarType)(n)&&(l.type=null!==(a=i[n.name])&&void 0!==a?a:"any"),(0,t.isListType)(n)){l.type="array";const{definition:t,definitions:r}=e(n.ofType,o);t.$ref?l.items={$ref:t.$ref}:l.items=t,r&&Object.keys(r).forEach(e=>{u[e]=r[e]})}if((0,t.isNonNullType)(n)){s=!0;const{definition:t,definitions:r}=e(n.ofType,o);l=t,r&&Object.keys(r).forEach(e=>{u[e]=r[e]})}if((0,t.isInputObjectType)(n)){l.$ref="#/definitions/"+n.name;const t=n.getFields(),i={type:"object",properties:{},required:[]};n.description?(i.description=n.description+"\n"+r(n),(null==o?void 0:o.useMarkdownDescription)&&(i.markdownDescription=n.description+"\n"+r(n,!0))):(i.description=r(n),(null==o?void 0:o.useMarkdownDescription)&&(i.markdownDescription=r(n,!0))),Object.keys(t).forEach(n=>{const a=t[n],{required:s,definition:l,definitions:c}=e(a.type,o),{definition:f}=e(a,o);i.properties[n]=Object.assign(Object.assign({},l),f);const d=r(a.type);if(i.properties[n].description=a.description?a.description+"\n"+d:d,null==o?void 0:o.useMarkdownDescription){const e=r(a.type,!0);i.properties[n].markdownDescription=a.description?a.description+"\n"+e:e}s&&i.required.push(n),c&&Object.keys(c).map(e=>{u[e]=c[e]})}),u[n.name]=i}return"description"in n&&!(0,t.isScalarType)(n)&&n.description&&!l.description?(l.description=n.description+"\n"+r(n),(null==o?void 0:o.useMarkdownDescription)&&(l.markdownDescription=n.description+"\n"+r(n,!0))):(l.description=r(n),(null==o?void 0:o.useMarkdownDescription)&&(l.markdownDescription=r(n,!0))),{required:s,definition:l,definitions:u}}(a,n);o.properties[e]=l,u&&(null===(s=o.required)||void 0===s||s.push(e)),c&&(o.definitions=Object.assign(Object.assign({},null==o?void 0:o.definitions),c))}),o},e.defaultJSONSchemaOptions=void 0,e.defaultJSONSchemaOptions={useMarkdownDescription:!1};const i={Int:"integer",String:"string",Float:"number",ID:"string",Boolean:"boolean",DateTime:"string"}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t){const n=e.split("\n").slice(0,t.line);return t.character+n.map(e=>e.length+1).reduce((e,t)=>e+t,0)}Object.defineProperty(e,"__esModule",{value:!0}),e.getASTNodeAtPosition=function(e,r,i){const o=n(e,i);let a;return(0,t.visit)(r,{enter(e){if(!("Name"!==e.kind&&e.loc&&e.loc.start<=o&&o<=e.loc.end))return!1;a=e},leave(e){if(e.loc&&e.loc.start<=o&&o<=e.loc.end)return!1}}),a},e.pointToOffset=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.offsetToPosition=r,e.locToRange=function(e,n){const i=r(e,n.start),o=r(e,n.end);return new t(i,o)},e.Position=e.Range=void 0;class t{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new n(e,t)}setEnd(e,t){this.end=new n(e,t)}}e.Range=t;class n{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}function r(e,t){const r=e.slice(0,t),i=r.split("\n").length-1,o=r.lastIndexOf("\n");return new n(i,t-o-1)}e.Position=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11)],void 0===(o="function"==typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateWithCustomRules=function(e,r,i,o,a){const s=t.specifiedRules.filter(e=>e!==t.NoUnusedFragmentsRule&&e!==t.ExecutableDefinitionsRule&&(!o||e!==t.KnownFragmentNamesRule));return i&&Array.prototype.push.apply(s,i),a&&Array.prototype.push.apply(s,n),(0,t.validate)(e,r,s).filter(e=>{if(-1!==e.message.indexOf("Unknown directive")&&e.nodes){const n=e.nodes[0];if(n&&n.kind===t.Kind.DIRECTIVE){const e=n.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})};const n=[t.LoneSchemaDefinitionRule,t.UniqueOperationTypesRule,t.UniqueTypeNamesRule,t.UniqueEnumValueNamesRule,t.UniqueFieldDefinitionNamesRule,t.UniqueDirectiveNamesRule,t.KnownTypeNamesRule,t.KnownDirectivesRule,t.UniqueDirectivesPerLocationRule,t.PossibleTypeExtensionsRule,t.UniqueArgumentNamesRule,t.UniqueInputFieldNamesRule]})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11),n(67)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e,r){const i=r?(0,n.collectVariables)(r,e):void 0,o=[];return(0,t.visit)(e,{OperationDefinition(e){o.push(e)}}),{variableToType:i,operations:o}}function i(e,n){if(n)try{const i=(0,t.parse)(n);return Object.assign(Object.assign({},r(i,e)),{documentAST:i})}catch(e){return}}Object.defineProperty(e,"__esModule",{value:!0}),e.getOperationASTFacts=r,e.default=i,e.getQueryFacts=void 0;const o=i;e.getQueryFacts=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(63),n(11),n(47),n(70),n(68),n(66),n(69),n(29)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GraphQLLanguageService=void 0;var u=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};const{FRAGMENT_DEFINITION:c,OBJECT_TYPE_DEFINITION:f,INTERFACE_TYPE_DEFINITION:d,ENUM_TYPE_DEFINITION:p,UNION_TYPE_DEFINITION:h,SCALAR_TYPE_DEFINITION:m,INPUT_OBJECT_TYPE_DEFINITION:g,SCALAR_TYPE_EXTENSION:v,OBJECT_TYPE_EXTENSION:y,INTERFACE_TYPE_EXTENSION:b,UNION_TYPE_EXTENSION:T,ENUM_TYPE_EXTENSION:E,INPUT_OBJECT_TYPE_EXTENSION:_,DIRECTIVE_DEFINITION:x,FRAGMENT_SPREAD:C,OPERATION_DEFINITION:O,NAMED_TYPE:S}=n.Kind,w={[n.Kind.FIELD]:t.SymbolKind.Field,[n.Kind.OPERATION_DEFINITION]:t.SymbolKind.Class,[n.Kind.FRAGMENT_DEFINITION]:t.SymbolKind.Class,[n.Kind.FRAGMENT_SPREAD]:t.SymbolKind.Struct,[n.Kind.OBJECT_TYPE_DEFINITION]:t.SymbolKind.Class,[n.Kind.ENUM_TYPE_DEFINITION]:t.SymbolKind.Enum,[n.Kind.ENUM_VALUE_DEFINITION]:t.SymbolKind.EnumMember,[n.Kind.INPUT_OBJECT_TYPE_DEFINITION]:t.SymbolKind.Class,[n.Kind.INPUT_VALUE_DEFINITION]:t.SymbolKind.Field,[n.Kind.FIELD_DEFINITION]:t.SymbolKind.Field,[n.Kind.INTERFACE_TYPE_DEFINITION]:t.SymbolKind.Interface,[n.Kind.DOCUMENT]:t.SymbolKind.File,FieldWithArguments:t.SymbolKind.Method};function k(e){return"FieldDefinition"===e.kind&&e.children&&e.children.length>0?w.FieldWithArguments:w[e.kind]}e.GraphQLLanguageService=class{constructor(e){this._graphQLCache=e,this._graphQLConfig=e.getGraphQLConfig()}getConfigForURI(e){const t=this._graphQLCache.getProjectForFile(e);if(t)return t;throw Error("No config found for uri: "+e)}getDiagnostics(e,t,r){return u(this,void 0,void 0,(function*(){let i=!1;const a=this.getConfigForURI(t);if(!a)return[];const{schema:s,name:l,extensions:u}=a;try{const r=(0,n.parse)(e);s&&t===s||(i=r.definitions.some(e=>{switch(e.kind){case f:case d:case p:case h:case m:case g:case v:case y:case b:case T:case E:case _:case x:return!0}return!1}))}catch(t){const n=(0,o.getRange)(t.locations[0],e);return[{severity:o.DIAGNOSTIC_SEVERITY.Error,message:t.message,source:"GraphQL: Syntax",range:n}]}let c=e;const C=yield this._graphQLCache.getFragmentDefinitions(a);c=`${c} ${(yield this._graphQLCache.getFragmentDependencies(e,C)).reduce((e,t)=>`${e} ${(0,n.print)(t.definition)}`,"")}`;let O=null;try{O=(0,n.parse)(c)}catch(e){return[]}let S=null;(null==u?void 0:u.customValidationRules)&&"function"==typeof u.customValidationRules&&(S=u.customValidationRules(this._graphQLConfig));const w=yield this._graphQLCache.getSchema(l,i);return w?(0,o.validateQuery)(O,w,S,r):[]}))}getAutocompleteSuggestions(e,t,n){return u(this,void 0,void 0,(function*(){const i=this.getConfigForURI(n),o=yield this._graphQLCache.getSchema(i.name),a=yield this._graphQLCache.getFragmentDefinitions(i),s=Array.from(a).map(([,e])=>e.definition);return o?(0,r.getAutocompleteSuggestions)(o,e,t,void 0,s):[]}))}getHoverInformation(e,t,n,r){return u(this,void 0,void 0,(function*(){const o=this.getConfigForURI(n),a=yield this._graphQLCache.getSchema(o.name);return a?(0,i.getHoverInformation)(a,e,t,void 0,r):""}))}getDefinition(e,t,r){return u(this,void 0,void 0,(function*(){const i=this.getConfigForURI(r);let o;try{o=(0,n.parse)(e)}catch(e){return null}const s=(0,l.getASTNodeAtPosition)(e,o,t);if(s)switch(s.kind){case C:return this._getDefinitionForFragmentSpread(e,o,s,r,i);case c:case O:return(0,a.getDefinitionQueryResultForDefinitionNode)(r,e,s);case S:return this._getDefinitionForNamedType(e,o,s,r,i)}return null}))}getDocumentSymbols(e,t){return u(this,void 0,void 0,(function*(){const n=yield this.getOutline(e);if(!n)return[];const r=[],i=n.outlineTrees.map(e=>[null,e]);for(;i.length>0;){const e=i.pop();if(!e)return[];const[n,o]=e;if(!o)return[];r.push({name:o.representativeName,kind:k(o),location:{uri:t,range:{start:o.startPosition,end:o.endPosition}},containerName:n?n.representativeName:void 0}),i.push(...o.children.map(e=>[o,e]))}return r}))}_getDefinitionForNamedType(e,t,n,r,i){return u(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getObjectTypeDefinitions(i),s=yield this._graphQLCache.getObjectTypeDependenciesForAST(t,o),l=t.definitions.filter(e=>e.kind===f||e.kind===g||e.kind===p||e.kind===m||e.kind===d).map(t=>({filePath:r,content:e,definition:t}));return yield(0,a.getDefinitionQueryResultForNamedType)(e,n,s.concat(l))}))}_getDefinitionForFragmentSpread(e,t,n,r,i){return u(this,void 0,void 0,(function*(){const o=yield this._graphQLCache.getFragmentDefinitions(i),s=yield this._graphQLCache.getFragmentDependenciesForAST(t,o),l=t.definitions.filter(e=>e.kind===c).map(t=>({filePath:r,content:e,definition:t}));return yield(0,a.getDefinitionQueryResultForFragmentSpread)(e,n,s.concat(l))}))}getOutline(e){return u(this,void 0,void 0,(function*(){return(0,s.getOutline)(e)}))}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.CompletionItemKind=e.FileChangeTypeKind=void 0,e.FileChangeTypeKind={Created:1,Changed:2,Deleted:3},e.CompletionItemKind=t,function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(t||(e.CompletionItemKind=t={}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ExecuteButton=void 0,t=(r=t)&&r.__esModule?r:{default:r};class i extends t.default.Component{constructor(e){super(e),n(this,"_onClick",()=>{this.props.isRunning?this.props.onStop():this.props.onRun()}),n(this,"_onOptionSelected",e=>{this.setState({optionsOpen:!1}),this.props.onRun(e.name&&e.name.value)}),n(this,"_onOptionsOpen",e=>{let t=!0;const n=e.currentTarget;this.setState({highlight:null,optionsOpen:!0});let r=e=>{var i;t&&e.target===n?t=!1:(document.removeEventListener("mouseup",r),r=null,e.currentTarget&&(null===(i=n.parentNode)||void 0===i?void 0:i.compareDocumentPosition(e.currentTarget))&&Node.DOCUMENT_POSITION_CONTAINED_BY||this.setState({optionsOpen:!1}))};document.addEventListener("mouseup",r)}),this.state={optionsOpen:!1,highlight:null}}render(){const e=this.props.operations||[],n=this.state.optionsOpen,r=e&&e.length>1;let i,o=null;if(r&&n){const n=this.state.highlight;o=t.default.createElement("ul",{className:"execute-options"},e.map((e,r)=>{const i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return t.default.createElement("li",{key:`${i}-${r}`,className:e===n?"selected":void 0,onMouseOver:()=>this.setState({highlight:e}),onMouseOut:()=>this.setState({highlight:null}),onMouseUp:()=>this._onOptionSelected(e)},i)}))}!this.props.isRunning&&r||(i=this._onClick);let a=()=>{};this.props.isRunning||!r||n||(a=this._onOptionsOpen);const s=this.props.isRunning?t.default.createElement("path",{d:"M 10 10 L 23 10 L 23 23 L 10 23 z"}):t.default.createElement("path",{d:"M 11 9 L 24 16 L 11 23 z"});return t.default.createElement("div",{className:"execute-button-wrap"},t.default.createElement("button",{type:"button",className:"execute-button",onMouseDown:a,onClick:i,title:"Execute Query (Ctrl-Enter)"},t.default.createElement("svg",{width:"34",height:"34"},s)),o)}}e.ExecuteButton=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{const e=window.location;return new URL(t,e.protocol+"//"+e.host)}catch(e){return}}var i;Object.defineProperty(e,"__esModule",{value:!0}),e.ImagePreview=void 0,t=(i=t)&&i.__esModule?i:{default:i};class o extends t.default.Component{constructor(...e){super(...e),n(this,"_node",null),n(this,"state",{width:null,height:null,src:null,mime:null})}static shouldRender(e){const t=r(e);return!!t&&function(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}(t)}componentDidMount(){this._updateMetadata()}componentDidUpdate(){this._updateMetadata()}render(){var e;let n=null;if(null!==this.state.width&&null!==this.state.height){let e=this.state.width+"x"+this.state.height;null!==this.state.mime&&(e+=" "+this.state.mime),n=t.default.createElement("div",null,e)}return t.default.createElement("div",null,t.default.createElement("img",{onLoad:()=>this._updateMetadata(),ref:e=>{this._node=e},src:null===(e=r(this.props.token))||void 0===e?void 0:e.href}),n)}_updateMetadata(){if(!this._node)return;const e=this._node.naturalWidth,t=this._node.naturalHeight,n=this._node.src;n!==this.state.src&&(this.setState({src:n}),fetch(n,{method:"HEAD"}).then(e=>{this.setState({mime:e.headers.get("Content-Type")})})),e===this.state.width&&t===this.state.height||this.setState({height:t,width:e})}}e.ImagePreview=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarButton=void 0,t=(n=t)&&n.__esModule?n:{default:n};class r extends t.default.Component{constructor(e){super(e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"handleClick",()=>{try{this.props.onClick(),this.setState({error:null})}catch(e){this.setState({error:e})}}),this.state={error:null}}render(){const{error:e}=this.state;return t.default.createElement("button",{className:"toolbar-button"+(e?" error":""),onClick:this.handleClick,title:e?e.message:this.props.title,"aria-invalid":e?"true":"false"},this.props.label)}}e.ToolbarButton=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarGroup=function({children:e}){return t.default.createElement("div",{className:"toolbar-button-group"},e)},t=(n=t)&&n.__esModule?n:{default:n}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r;Object.defineProperty(e,"__esModule",{value:!0}),e.ToolbarMenuItem=e.ToolbarMenu=void 0,t=(r=t)&&r.__esModule?r:{default:r};class i extends t.default.Component{constructor(e){super(e),n(this,"_node",null),n(this,"_listener",null),n(this,"handleOpen",e=>{o(e),this.setState({visible:!0}),this._subscribe()}),this.state={visible:!1}}componentWillUnmount(){this._release()}render(){const e=this.state.visible;return t.default.createElement("a",{className:"toolbar-menu toolbar-button",onClick:this.handleOpen.bind(this),onMouseDown:o,ref:e=>{e&&(this._node=e)},title:this.props.title},this.props.label,t.default.createElement("svg",{width:"14",height:"8"},t.default.createElement("path",{fill:"#666",d:"M 5 1.5 L 14 1.5 L 9.5 7 z"})),t.default.createElement("ul",{className:"toolbar-menu-items"+(e?" open":"")},this.props.children))}_subscribe(){this._listener||(this._listener=this.handleClick.bind(this),document.addEventListener("click",this._listener))}_release(){this._listener&&(document.removeEventListener("click",this._listener),this._listener=null)}handleClick(e){this._node!==e.target&&(e.preventDefault(),this.setState({visible:!1}),this._release())}}function o(e){e.preventDefault()}e.ToolbarMenu=i,e.ToolbarMenuItem=({onSelect:e,title:n,label:r})=>t.default.createElement("li",{onMouseOver:e=>{e.currentTarget.className="hover"},onMouseOut:e=>{e.currentTarget.className=""},onMouseDown:o,onMouseUp:e,title:n},r)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(49),n(189),n(53),n(37)],void 0===(o="function"==typeof(r=function(e,t,r,i,o,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.QueryEditor=void 0,t=s(t),r=s(r),o=s(o),a=s(a);const u=new r.default,c=/^[a-zA-Z0-9_@(]$/;class f extends t.default.Component{constructor(e){super(e),l(this,"cachedValue",void 0),l(this,"editor",null),l(this,"ignoreChangeEvent",!1),l(this,"_node",null),l(this,"_onKeyUp",(e,t)=>{c.test(t.key)&&this.editor&&this.editor.execCommand("autocomplete")}),l(this,"_onEdit",()=>{!this.ignoreChangeEvent&&this.editor&&(this.cachedValue=this.editor.getValue(),this.props.onEdit&&this.props.onEdit(this.cachedValue))}),l(this,"_onHasCompletion",(e,t)=>{(0,o.default)(e,t,this.props.onHintInformationRender)}),this.cachedValue=e.value||""}componentDidMount(){var e,t,r;const i=n(10);n(38),n(191),n(39),n(54),n(40),n(41),n(79),n(30),n(42),n(31),n(55),n(43),n(193),n(194),n(195),n(196),n(198);const o=this.editor=i(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{schema:this.props.schema,validationRules:null!==(e=this.props.validationRules)&&void 0!==e?e:null,externalFragments:null===(t=this.props)||void 0===t?void 0:t.externalFragments},hintOptions:{schema:this.props.schema,closeOnUnfocus:!1,completeSingle:!1,container:this._node,externalFragments:null===(r=this.props)||void 0===r?void 0:r.externalFragments},info:{schema:this.props.schema,renderDescription:e=>u.render(e),onClick:e=>this.props.onClickReference&&this.props.onClickReference(e)},jump:{schema:this.props.schema,onClick:e=>this.props.onClickReference&&this.props.onClickReference(e)},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Ctrl-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Alt-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Shift-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Shift-Alt-Space":()=>o.showHint({completeSingle:!0,container:this._node}),"Cmd-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Ctrl-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Shift-Ctrl-C":()=>{this.props.onCopyQuery&&this.props.onCopyQuery()},"Shift-Ctrl-P":()=>{this.props.onPrettifyQuery&&this.props.onPrettifyQuery()},"Shift-Ctrl-F":()=>{this.props.onPrettifyQuery&&this.props.onPrettifyQuery()},"Shift-Ctrl-M":()=>{this.props.onMergeQuery&&this.props.onMergeQuery()},...a.default,"Cmd-S":()=>{this.props.onRunQuery},"Ctrl-S":()=>{this.props.onRunQuery}}});o&&(o.on("change",this._onEdit),o.on("keyup",this._onKeyUp),o.on("hasCompletion",this._onHasCompletion),o.on("beforeChange",this._onBeforeChange))}componentDidUpdate(e){const t=n(10);this.ignoreChangeEvent=!0,this.props.schema!==e.schema&&this.editor&&(this.editor.options.lint.schema=this.props.schema,this.editor.options.hintOptions.schema=this.props.schema,this.editor.options.info.schema=this.props.schema,this.editor.options.jump.schema=this.props.schema,t.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue&&this.editor&&(this.cachedValue=this.props.value,this.editor.setValue(this.props.value)),this.ignoreChangeEvent=!1}componentWillUnmount(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)}render(){return t.default.createElement("section",{className:"query-editor","aria-label":"Query Editor",ref:e=>{this._node=e}})}getCodeMirror(){return this.editor}getClientHeight(){return this._node&&this._node.clientHeight}_onBeforeChange(e,t){if("paste"===t.origin){const e=t.text.map(i.normalizeWhitespace);t.update(t.from,t.to,e)}}}e.QueryEditor=f})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12),r=n(142),i=n(146),o=n(147),a=n(155),s=n(169),l=n(182),u=n(72),c=n(184),f={default:n(186),zero:n(187),commonmark:n(188)},d=/^(vbscript|javascript|file|data):/,p=/^data:image\/(gif|png|jpeg|webp);/;function h(e){var t=e.trim().toLowerCase();return!d.test(t)||!!p.test(t)}var m=["http:","https:","mailto:"];function g(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=c.toASCII(t.hostname)}catch(e){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||m.indexOf(t.protocol)>=0))try{t.hostname=c.toUnicode(t.hostname)}catch(e){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function y(e,n){if(!(this instanceof y))return new y(e,n);n||t.isString(e)||(n=e||{},e="default"),this.inline=new s,this.block=new a,this.core=new o,this.renderer=new i,this.linkify=new l,this.validateLink=h,this.normalizeLink=g,this.normalizeLinkText=v,this.utils=t,this.helpers=t.assign({},r),this.options={},this.configure(e),n&&this.set(n)}y.prototype.set=function(e){return t.assign(this.options,e),this},y.prototype.configure=function(e){var n,r=this;if(t.isString(e)&&!(e=f[n=e]))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&r[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&r[t].ruler2.enableOnly(e.components[t].rules2)})),this},y.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},y.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},y.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},y.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},y.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},y.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},y.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=y})?r.apply(t,i):r)||(e.exports=o)},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ﬃ","fflig":"ﬀ","ffllig":"ﬄ","Ffr":"𝔉","ffr":"𝔣","filig":"ﬁ","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"ﬂ","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"Ĳ","ijlig":"ĳ","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ŉ","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t={};function n(e,r,i){var o,a,s,l,u,c="";for("string"!=typeof r&&(i=r,r=n.defaultChars),void 0===i&&(i=!0),u=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),/^[0-9a-z]$/i.test(r)?i.push(r):i.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2));for(n=0;n<e.length;n++)i[e.charCodeAt(n)]=e[n];return i}(r),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),i&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))c+=e.slice(o,o+3),o+=2;else if(s<128)c+=u[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(l=e.charCodeAt(o+1))>=56320&&l<=57343){c+=encodeURIComponent(e[o]+e[o+1]),o++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[o]);return c}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",e.exports=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t={};function n(e,r){var i;return"string"!=typeof r&&(r=n.defaultChars),i=function(e){var n,r,i=t[e];if(i)return i;for(i=t[e]=[],n=0;n<128;n++)r=String.fromCharCode(n),i.push(r);for(n=0;n<e.length;n++)i[r=e.charCodeAt(n)]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return i}(r),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,n,r,o,a,s,l,u="";for(t=0,n=e.length;t<n;t+=3)(r=parseInt(e.slice(t+1,t+3),16))<128?u+=i[r]:192==(224&r)&&t+3<n&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(u+=(l=r<<6&1984|63&o)<128?"��":String.fromCharCode(l),t+=3):224==(240&r)&&t+6<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(u+=(l=r<<12&61440|o<<6&4032|63&a)<2048||l>=55296&&l<=57343?"���":String.fromCharCode(l),t+=6):240==(248&r)&&t+9<n&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),s=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&s))?((l=r<<18&1835008|o<<12&258048|a<<6&4032|63&s)<65536||l>1114111?u+="����":(l-=65536,u+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):u+="�";return u}))}n.defaultChars=";/?:@&=+$,#",n.componentChars="",e.exports=n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),a=["'"].concat(o),s=["%","/","?",";","#"].concat(a),l=["/","?","#"],u=/^[+a-z0-9A-Z_-]{0,63}$/,c=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var r,o,a,p,h,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=i.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var v=n.exec(m);if(v&&(a=(v=v[0]).toLowerCase(),this.protocol=v,m=m.substr(v.length)),(t||v||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(h="//"===m.substr(0,2))||v&&f[v]||(m=m.substr(2),this.slashes=!0)),!f[v]&&(h||v&&!d[v])){var y,b,T=-1;for(r=0;r<l.length;r++)-1!==(p=m.indexOf(l[r]))&&(-1===T||p<T)&&(T=p);for(-1!==(b=-1===T?m.lastIndexOf("@"):m.lastIndexOf("@",T))&&(y=m.slice(0,b),m=m.slice(b+1),this.auth=y),T=-1,r=0;r<s.length;r++)-1!==(p=m.indexOf(s[r]))&&(-1===T||p<T)&&(T=p);-1===T&&(T=m.length),":"===m[T-1]&&T--;var E=m.slice(0,T);m=m.slice(T),this.parseHost(E),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_){var x=this.hostname.split(/\./);for(r=0,o=x.length;r<o;r++){var C=x[r];if(C&&!C.match(u)){for(var O="",S=0,w=C.length;S<w;S++)C.charCodeAt(S)>127?O+="x":O+=C[S];if(!O.match(u)){var k=x.slice(0,r),N=x.slice(r+1),D=C.match(c);D&&(k.push(D[1]),N.unshift(D[2])),N.length&&(m=N.join(".")+m),this.hostname=k.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var A=m.indexOf("#");-1!==A&&(this.hash=m.substr(A),m=m.slice(0,A));var I=m.indexOf("?");return-1!==I&&(this.search=m.substr(I),m=m.slice(0,I)),m&&(this.pathname=m),d[a]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=r.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,n){if(e&&e instanceof t)return e;var r=new t;return r.parse(e,n),r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";t.Any=n(73),t.Cc=n(74),t.Cf=n(141),t.P=n(50),t.Z=n(75)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";t.parseLinkLabel=n(143),t.parseLinkDestination=n(144),t.parseLinkTitle=n(145)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o,a,s=-1,l=e.posMax,u=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(93===(o=e.src.charCodeAt(e.pos))&&0==--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=u,-1}return i&&(s=e.pos),e.pos=u,s}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).unescapeAll;e.exports=function(e,n,r){var i,o,a=n,s={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(n)){for(n++;n<r;){if(10===(i=e.charCodeAt(n)))return s;if(60===i)return s;if(62===i)return s.pos=n+1,s.str=t(e.slice(a+1,n)),s.ok=!0,s;92===i&&n+1<r?n+=2:n++}return s}for(o=0;n<r&&32!==(i=e.charCodeAt(n))&&!(i<32||127===i);)if(92===i&&n+1<r){if(32===e.charCodeAt(n+1))break;n+=2}else{if(40===i&&++o>32)return s;if(41===i){if(0===o)break;o--}n++}return a===n||0!==o||(s.str=t(e.slice(a,n)),s.lines=0,s.pos=n,s.ok=!0),s}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).unescapeAll;e.exports=function(e,n,r){var i,o,a=0,s=n,l={ok:!1,pos:0,lines:0,str:""};if(n>=r)return l;if(34!==(o=e.charCodeAt(n))&&39!==o&&40!==o)return l;for(n++,40===o&&(o=41);n<r;){if((i=e.charCodeAt(n))===o)return l.pos=n+1,l.lines=a,l.str=t(e.slice(s+1,n)),l.ok=!0,l;if(40===i&&41===o)return l;10===i?a++:92===i&&n+1<r&&(n++,10===e.charCodeAt(n)&&a++),n++}return l}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).assign,r=n(12).unescapeAll,i=n(12).escapeHtml,o={};function a(){this.rules=t({},o)}o.code_inline=function(e,t,n,r,o){var a=e[t];return"<code"+o.renderAttrs(a)+">"+i(e[t].content)+"</code>"},o.code_block=function(e,t,n,r,o){var a=e[t];return"<pre"+o.renderAttrs(a)+"><code>"+i(e[t].content)+"</code></pre>\n"},o.fence=function(e,t,n,o,a){var s,l,u,c,f,d=e[t],p=d.info?r(d.info).trim():"",h="",m="";return p&&(h=(u=p.split(/(\s+)/g))[0],m=u.slice(2).join("")),0===(s=n.highlight&&n.highlight(d.content,h,m)||i(d.content)).indexOf("<pre")?s+"\n":p?(l=d.attrIndex("class"),c=d.attrs?d.attrs.slice():[],l<0?c.push(["class",n.langPrefix+h]):(c[l]=c[l].slice(),c[l][1]+=" "+n.langPrefix+h),f={attrs:c},"<pre><code"+a.renderAttrs(f)+">"+s+"</code></pre>\n"):"<pre><code"+a.renderAttrs(d)+">"+s+"</code></pre>\n"},o.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},o.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},o.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},o.text=function(e,t){return i(e[t].content)},o.html_block=function(e,t){return e[t].content},o.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+i(e.attrs[t][0])+'="'+i(e.attrs[t][1])+'"';return r},a.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},a.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,s=e.length;a<s;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},a.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},a.prototype.render=function(e,t,n){var r,i,o,a="",s=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==s[o]?a+=s[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a},e.exports=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(51),r=[["normalize",n(148)],["block",n(149)],["inline",n(150)],["linkify",n(151)],["replacements",n(152)],["smartquotes",n(153)]];function i(){this.ruler=new t;for(var e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1])}i.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},i.prototype.State=n(154),e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/\r\n?|\n/g,n=/\0/g;e.exports=function(e){var r;r=(r=e.src.replace(t,"\n")).replace(n,"�"),e.src=r}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).arrayReplaceAt;function r(e){return/^<\/a\s*>/i.test(e)}e.exports=function(e){var n,i,o,a,s,l,u,c,f,d,p,h,m,g,v,y,b,T,E=e.tokens;if(e.md.options.linkify)for(i=0,o=E.length;i<o;i++)if("inline"===E[i].type&&e.md.linkify.pretest(E[i].content))for(m=0,n=(a=E[i].children).length-1;n>=0;n--)if("link_close"!==(l=a[n]).type){if("html_inline"===l.type&&(T=l.content,/^<a[>\s]/i.test(T)&&m>0&&m--,r(l.content)&&m++),!(m>0)&&"text"===l.type&&e.md.linkify.test(l.content)){for(f=l.content,b=e.md.linkify.match(f),u=[],h=l.level,p=0,c=0;c<b.length;c++)g=b[c].url,v=e.md.normalizeLink(g),e.md.validateLink(v)&&(y=b[c].text,y=b[c].schema?"mailto:"!==b[c].schema||/^mailto:/i.test(y)?e.md.normalizeLinkText(y):e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),(d=b[c].index)>p&&((s=new e.Token("text","",0)).content=f.slice(p,d),s.level=h,u.push(s)),(s=new e.Token("link_open","a",1)).attrs=[["href",v]],s.level=h++,s.markup="linkify",s.info="auto",u.push(s),(s=new e.Token("text","",0)).content=y,s.level=h,u.push(s),(s=new e.Token("link_close","a",-1)).level=--h,s.markup="linkify",s.info="auto",u.push(s),p=b[c].lastIndex);p<f.length&&((s=new e.Token("text","",0)).content=f.slice(p),s.level=h,u.push(s)),E[i].children=a=t(a,n,u)}}else for(n--;a[n].level!==l.level&&"link_open"!==a[n].type;)n--}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,n=/\((c|tm|r|p)\)/i,r=/\((c|tm|r|p)\)/gi,i={c:"©",r:"®",p:"§",tm:"™"};function o(e,t){return i[t.toLowerCase()]}function a(e){var t,n,i=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||i||(n.content=n.content.replace(r,o)),"link_open"===n.type&&"auto"===n.info&&i--,"link_close"===n.type&&"auto"===n.info&&i++}function s(e){var n,r,i=0;for(n=e.length-1;n>=0;n--)"text"!==(r=e[n]).type||i||t.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&i--,"link_close"===r.type&&"auto"===r.info&&i++}e.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)"inline"===e.tokens[r].type&&(n.test(e.tokens[r].content)&&a(e.tokens[r].children),t.test(e.tokens[r].content)&&s(e.tokens[r].children))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).isWhiteSpace,r=n(12).isPunctChar,i=n(12).isMdAsciiPunct,o=/['"]/,a=/['"]/g;function s(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function l(e,n){var o,l,u,c,f,d,p,h,m,g,v,y,b,T,E,_,x,C,O,S,w;for(O=[],o=0;o<e.length;o++){for(l=e[o],p=e[o].level,x=O.length-1;x>=0&&!(O[x].level<=p);x--);if(O.length=x+1,"text"===l.type){f=0,d=(u=l.content).length;e:for(;f<d&&(a.lastIndex=f,c=a.exec(u));){if(E=_=!0,f=c.index+1,C="'"===c[0],m=32,c.index-1>=0)m=u.charCodeAt(c.index-1);else for(x=o-1;x>=0&&"softbreak"!==e[x].type&&"hardbreak"!==e[x].type;x--)if(e[x].content){m=e[x].content.charCodeAt(e[x].content.length-1);break}if(g=32,f<d)g=u.charCodeAt(f);else for(x=o+1;x<e.length&&"softbreak"!==e[x].type&&"hardbreak"!==e[x].type;x++)if(e[x].content){g=e[x].content.charCodeAt(0);break}if(v=i(m)||r(String.fromCharCode(m)),y=i(g)||r(String.fromCharCode(g)),b=t(m),(T=t(g))?E=!1:y&&(b||v||(E=!1)),b?_=!1:v&&(T||y||(_=!1)),34===g&&'"'===c[0]&&m>=48&&m<=57&&(_=E=!1),E&&_&&(E=v,_=y),E||_){if(_)for(x=O.length-1;x>=0&&(h=O[x],!(O[x].level<p));x--)if(h.single===C&&O[x].level===p){h=O[x],C?(S=n.md.options.quotes[2],w=n.md.options.quotes[3]):(S=n.md.options.quotes[0],w=n.md.options.quotes[1]),l.content=s(l.content,c.index,w),e[h.token].content=s(e[h.token].content,h.pos,S),f+=w.length-1,h.token===o&&(f+=S.length-1),d=(u=l.content).length,O.length=x;continue e}E?O.push({token:o,pos:c.index,single:C,level:p}):_&&C&&(l.content=s(l.content,c.index,"’"))}else C&&(l.content=s(l.content,c.index,"’"))}}}}e.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&o.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(52);function r(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}r.prototype.Token=t,e.exports=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(51),r=[["table",n(156),["paragraph","reference"]],["code",n(157)],["fence",n(158),["paragraph","reference","blockquote","list"]],["blockquote",n(159),["paragraph","reference","blockquote","list"]],["hr",n(160),["paragraph","reference","blockquote","list"]],["list",n(161),["paragraph","reference","blockquote"]],["reference",n(162)],["html_block",n(163),["paragraph","reference","blockquote"]],["heading",n(165),["paragraph","reference","blockquote"]],["lheading",n(166)],["paragraph",n(167)]];function i(){this.ruler=new t;for(var e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1],{alt:(r[e][2]||[]).slice()})}i.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,s=!1,l=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=l){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),(a=e.line)<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},i.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},i.prototype.State=n(168),e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).isSpace;function r(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}function i(e){var t,n=[],r=0,i=e.length,o=!1,a=0,s="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(s+=e.substring(a,r-1),a=r):(n.push(s+e.substring(a,r)),s="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(s+e.substring(a)),n}e.exports=function(e,n,o,a){var s,l,u,c,f,d,p,h,m,g,v,y,b,T,E,_,x,C;if(n+2>o)return!1;if(d=n+1,e.sCount[d]<e.blkIndent)return!1;if(e.sCount[d]-e.blkIndent>=4)return!1;if((u=e.bMarks[d]+e.tShift[d])>=e.eMarks[d])return!1;if(124!==(x=e.src.charCodeAt(u++))&&45!==x&&58!==x)return!1;if(u>=e.eMarks[d])return!1;if(124!==(C=e.src.charCodeAt(u++))&&45!==C&&58!==C&&!t(C))return!1;if(45===x&&t(C))return!1;for(;u<e.eMarks[d];){if(124!==(s=e.src.charCodeAt(u))&&45!==s&&58!==s&&!t(s))return!1;u++}for(p=(l=r(e,n+1)).split("|"),g=[],c=0;c<p.length;c++){if(!(v=p[c].trim())){if(0===c||c===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;58===v.charCodeAt(v.length-1)?g.push(58===v.charCodeAt(0)?"center":"right"):58===v.charCodeAt(0)?g.push("left"):g.push("")}if(-1===(l=r(e,n).trim()).indexOf("|"))return!1;if(e.sCount[n]-e.blkIndent>=4)return!1;if((p=i(l)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),0===(h=p.length)||h!==g.length)return!1;if(a)return!0;for(T=e.parentType,e.parentType="table",_=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=y=[n,0],(m=e.push("thead_open","thead",1)).map=[n,n+1],(m=e.push("tr_open","tr",1)).map=[n,n+1],c=0;c<p.length;c++)m=e.push("th_open","th",1),g[c]&&(m.attrs=[["style","text-align:"+g[c]]]),(m=e.push("inline","",0)).content=p[c].trim(),m.children=[],m=e.push("th_close","th",-1);for(m=e.push("tr_close","tr",-1),m=e.push("thead_close","thead",-1),d=n+2;d<o&&!(e.sCount[d]<e.blkIndent);d++){for(E=!1,c=0,f=_.length;c<f;c++)if(_[c](e,d,o,!0)){E=!0;break}if(E)break;if(!(l=r(e,d).trim()))break;if(e.sCount[d]-e.blkIndent>=4)break;for((p=i(l)).length&&""===p[0]&&p.shift(),p.length&&""===p[p.length-1]&&p.pop(),d===n+2&&((m=e.push("tbody_open","tbody",1)).map=b=[n+2,0]),(m=e.push("tr_open","tr",1)).map=[d,d+1],c=0;c<h;c++)m=e.push("td_open","td",1),g[c]&&(m.attrs=[["style","text-align:"+g[c]]]),(m=e.push("inline","",0)).content=p[c]?p[c].trim():"",m.children=[],m=e.push("td_close","td",-1);m=e.push("tr_close","tr",-1)}return b&&(m=e.push("tbody_close","tbody",-1),b[1]=d),m=e.push("table_close","table",-1),y[1]=d,e.parentType=T,e.line=d,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,l,u,c,f=!1,d=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(d+3>p)return!1;if(126!==(i=e.src.charCodeAt(d))&&96!==i)return!1;if(l=d,(o=(d=e.skipChars(d,i))-l)<3)return!1;if(c=e.src.slice(l,d),a=e.src.slice(d,p),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(s=t;!(++s>=n||(d=l=e.bMarks[s]+e.tShift[s])<(p=e.eMarks[s])&&e.sCount[s]<e.blkIndent);)if(e.src.charCodeAt(d)===i&&!(e.sCount[s]-e.blkIndent>=4||(d=e.skipChars(d,i))-l<o||(d=e.skipSpaces(d))<p)){f=!0;break}return o=e.sCount[t],e.line=s+(f?1:0),(u=e.push("fence","code",0)).info=a,u.content=e.getLines(t+1,s,o,!0),u.markup=c,u.map=[t,e.line],!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).isSpace;e.exports=function(e,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g,v,y,b,T,E,_,x,C,O=e.lineMax,S=e.bMarks[n]+e.tShift[n],w=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(S++))return!1;if(i)return!0;for(l=p=e.sCount[n]+1,32===e.src.charCodeAt(S)?(S++,l++,p++,o=!1,T=!0):9===e.src.charCodeAt(S)?(T=!0,(e.bsCount[n]+p)%4==3?(S++,l++,p++,o=!1):o=!0):T=!1,h=[e.bMarks[n]],e.bMarks[n]=S;S<w&&(a=e.src.charCodeAt(S),t(a));)9===a?p+=4-(p+e.bsCount[n]+(o?1:0))%4:p++,S++;for(m=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(T?1:0),c=S>=w,y=[e.sCount[n]],e.sCount[n]=p-l,b=[e.tShift[n]],e.tShift[n]=S-e.bMarks[n],_=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",d=n+1;d<r&&(C=e.sCount[d]<e.blkIndent,!((S=e.bMarks[d]+e.tShift[d])>=(w=e.eMarks[d])));d++)if(62!==e.src.charCodeAt(S++)||C){if(c)break;for(E=!1,s=0,u=_.length;s<u;s++)if(_[s](e,d,r,!0)){E=!0;break}if(E){e.lineMax=d,0!==e.blkIndent&&(h.push(e.bMarks[d]),m.push(e.bsCount[d]),b.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}h.push(e.bMarks[d]),m.push(e.bsCount[d]),b.push(e.tShift[d]),y.push(e.sCount[d]),e.sCount[d]=-1}else{for(l=p=e.sCount[d]+1,32===e.src.charCodeAt(S)?(S++,l++,p++,o=!1,T=!0):9===e.src.charCodeAt(S)?(T=!0,(e.bsCount[d]+p)%4==3?(S++,l++,p++,o=!1):o=!0):T=!1,h.push(e.bMarks[d]),e.bMarks[d]=S;S<w&&(a=e.src.charCodeAt(S),t(a));)9===a?p+=4-(p+e.bsCount[d]+(o?1:0))%4:p++,S++;c=S>=w,m.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(T?1:0),y.push(e.sCount[d]),e.sCount[d]=p-l,b.push(e.tShift[d]),e.tShift[d]=S-e.bMarks[d]}for(g=e.blkIndent,e.blkIndent=0,(x=e.push("blockquote_open","blockquote",1)).markup=">",x.map=f=[n,0],e.md.block.tokenize(e,n,d),(x=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=O,e.parentType=v,f[1]=e.line,s=0;s<b.length;s++)e.bMarks[s+n]=h[s],e.tShift[s+n]=b[s],e.sCount[s+n]=y[s],e.bsCount[s+n]=m[s];return e.blkIndent=g,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).isSpace;e.exports=function(e,n,r,i){var o,a,s,l,u=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4)return!1;if(42!==(o=e.src.charCodeAt(u++))&&45!==o&&95!==o)return!1;for(a=1;u<c;){if((s=e.src.charCodeAt(u++))!==o&&!t(s))return!1;s===o&&a++}return!(a<3||(i||(e.line=n+1,(l=e.push("hr","hr",0)).map=[n,e.line],l.markup=Array(a+1).join(String.fromCharCode(o))),0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).isSpace;function r(e,n){var r,i,o,a;return i=e.bMarks[n]+e.tShift[n],o=e.eMarks[n],42!==(r=e.src.charCodeAt(i++))&&45!==r&&43!==r||i<o&&(a=e.src.charCodeAt(i),!t(a))?-1:i}function i(e,n){var r,i=e.bMarks[n]+e.tShift[n],o=i,a=e.eMarks[n];if(o+1>=a)return-1;if((r=e.src.charCodeAt(o++))<48||r>57)return-1;for(;;){if(o>=a)return-1;if(!((r=e.src.charCodeAt(o++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(o-i>=10)return-1}return o<a&&(r=e.src.charCodeAt(o),!t(r))?-1:o}e.exports=function(e,t,n,o){var a,s,l,u,c,f,d,p,h,m,g,v,y,b,T,E,_,x,C,O,S,w,k,N,D,A,I,L,R=!1,F=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(o&&"paragraph"===e.parentType&&e.tShift[t]>=e.blkIndent&&(R=!0),(k=i(e,t))>=0){if(d=!0,D=e.bMarks[t]+e.tShift[t],y=Number(e.src.slice(D,k-1)),R&&1!==y)return!1}else{if(!((k=r(e,t))>=0))return!1;d=!1}if(R&&e.skipSpaces(k)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(k-1),o)return!0;for(g=e.tokens.length,d?(L=e.push("ordered_list_open","ol",1),1!==y&&(L.attrs=[["start",y]])):L=e.push("bullet_list_open","ul",1),L.map=m=[t,0],L.markup=String.fromCharCode(v),T=t,N=!1,I=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";T<n;){for(w=k,b=e.eMarks[T],f=E=e.sCount[T]+k-(e.bMarks[t]+e.tShift[t]);w<b;){if(9===(a=e.src.charCodeAt(w)))E+=4-(E+e.bsCount[T])%4;else{if(32!==a)break;E++}w++}if((c=(s=w)>=b?1:E-f)>4&&(c=1),u=f+c,(L=e.push("list_item_open","li",1)).markup=String.fromCharCode(v),L.map=p=[t,0],d&&(L.info=e.src.slice(D,k-1)),S=e.tight,O=e.tShift[t],C=e.sCount[t],_=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=u,e.tight=!0,e.tShift[t]=s-e.bMarks[t],e.sCount[t]=E,s>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!N||(F=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=_,e.tShift[t]=O,e.sCount[t]=C,e.tight=S,(L=e.push("list_item_close","li",-1)).markup=String.fromCharCode(v),T=t=e.line,p[1]=T,s=e.bMarks[t],T>=n)break;if(e.sCount[T]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(A=!1,l=0,h=I.length;l<h;l++)if(I[l](e,T,n,!0)){A=!0;break}if(A)break;if(d){if((k=i(e,T))<0)break;D=e.bMarks[T]+e.tShift[T]}else if((k=r(e,T))<0)break;if(v!==e.src.charCodeAt(k-1))break}return(L=d?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(v),m[1]=T,e.line=T,e.parentType=x,F&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,g),!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).normalizeReference,r=n(12).isSpace;e.exports=function(e,n,i,o){var a,s,l,u,c,f,d,p,h,m,g,v,y,b,T,E,_=0,x=e.bMarks[n]+e.tShift[n],C=e.eMarks[n],O=n+1;if(e.sCount[n]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(x))return!1;for(;++x<C;)if(93===e.src.charCodeAt(x)&&92!==e.src.charCodeAt(x-1)){if(x+1===C)return!1;if(58!==e.src.charCodeAt(x+1))return!1;break}for(u=e.lineMax,T=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";O<u&&!e.isEmpty(O);O++)if(!(e.sCount[O]-e.blkIndent>3||e.sCount[O]<0)){for(b=!1,f=0,d=T.length;f<d;f++)if(T[f](e,O,u,!0)){b=!0;break}if(b)break}for(C=(y=e.getLines(n,O,e.blkIndent,!1).trim()).length,x=1;x<C;x++){if(91===(a=y.charCodeAt(x)))return!1;if(93===a){h=x;break}(10===a||92===a&&++x<C&&10===y.charCodeAt(x))&&_++}if(h<0||58!==y.charCodeAt(h+1))return!1;for(x=h+2;x<C;x++)if(10===(a=y.charCodeAt(x)))_++;else if(!r(a))break;if(!(g=e.md.helpers.parseLinkDestination(y,x,C)).ok)return!1;if(c=e.md.normalizeLink(g.str),!e.md.validateLink(c))return!1;for(s=x=g.pos,l=_+=g.lines,v=x;x<C;x++)if(10===(a=y.charCodeAt(x)))_++;else if(!r(a))break;for(g=e.md.helpers.parseLinkTitle(y,x,C),x<C&&v!==x&&g.ok?(E=g.str,x=g.pos,_+=g.lines):(E="",x=s,_=l);x<C&&(a=y.charCodeAt(x),r(a));)x++;if(x<C&&10!==y.charCodeAt(x)&&E)for(E="",x=s,_=l;x<C&&(a=y.charCodeAt(x),r(a));)x++;return!(x<C&&10!==y.charCodeAt(x)||!(p=t(y.slice(1,h)))||(o||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[p]&&(e.env.references[p]={title:E,href:c}),e.parentType=m,e.line=n+_+1),0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(164),r=n(76).HTML_OPEN_CLOSE_TAG_RE,i=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+t.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,n,r){var o,a,s,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(u))return!1;for(l=e.src.slice(u,c),o=0;o<i.length&&!i[o][0].test(l);o++);if(o===i.length)return!1;if(r)return i[o][2];if(a=t+1,!i[o][1].test(l))for(;a<n&&!(e.sCount[a]<e.blkIndent);a++)if(u=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],l=e.src.slice(u,c),i[o][1].test(l)){0!==l.length&&a++;break}return e.line=a,(s=e.push("html_block","",0)).map=[t,a],s.content=e.getLines(t,a,e.blkIndent,!0),!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).isSpace;e.exports=function(e,n,r,i){var o,a,s,l,u=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4)return!1;if(35!==(o=e.src.charCodeAt(u))||u>=c)return!1;for(a=1,o=e.src.charCodeAt(++u);35===o&&u<c&&a<=6;)a++,o=e.src.charCodeAt(++u);return!(a>6||u<c&&!t(o)||(i||(c=e.skipSpacesBack(c,u),(s=e.skipCharsBack(c,35,u))>u&&t(e.src.charCodeAt(s-1))&&(c=s),e.line=n+1,(l=e.push("heading_open","h"+String(a),1)).markup="########".slice(0,a),l.map=[n,e.line],(l=e.push("inline","",0)).content=e.src.slice(u,c).trim(),l.map=[n,e.line],l.children=[],(l=e.push("heading_close","h"+String(a),-1)).markup="########".slice(0,a)),0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,l,u,c,f,d,p=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(d=e.parentType,e.parentType="paragraph";p<n&&!e.isEmpty(p);p++)if(!(e.sCount[p]-e.blkIndent>3)){if(e.sCount[p]>=e.blkIndent&&(l=e.bMarks[p]+e.tShift[p])<(u=e.eMarks[p])&&(45===(f=e.src.charCodeAt(l))||61===f)&&(l=e.skipChars(l,f),(l=e.skipSpaces(l))>=u)){c=61===f?1:2;break}if(!(e.sCount[p]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,p,n,!0)){i=!0;break}if(i)break}}return!!c&&(r=e.getLines(t,p,e.blkIndent,!1).trim(),e.line=p+1,(s=e.push("heading_open","h"+String(c),1)).markup=String.fromCharCode(f),s.map=[t,e.line],(s=e.push("inline","",0)).content=r,s.map=[t,e.line-1],s.children=[],(s=e.push("heading_close","h"+String(c),-1)).markup=String.fromCharCode(f),e.parentType=d,!0)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l=t+1,u=e.md.block.ruler.getRules("paragraph"),c=e.lineMax;for(s=e.parentType,e.parentType="paragraph";l<c&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3||e.sCount[l]<0)){for(r=!1,i=0,o=u.length;i<o;i++)if(u[i](e,l,c,!0)){r=!0;break}if(r)break}return n=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=s,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(52),r=n(12).isSpace;function i(e,t,n,i){var o,a,s,l,u,c,f,d;for(this.src=e,this.md=t,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=!1,s=l=c=f=0,u=(a=this.src).length;l<u;l++){if(o=a.charCodeAt(l),!d){if(r(o)){c++,9===o?f+=4-f%4:f++;continue}d=!0}10!==o&&l!==u-1||(10!==o&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(c),this.sCount.push(f),this.bsCount.push(0),d=!1,c=0,f=0,s=l+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}i.prototype.push=function(e,n,r){var i=new t(e,n,r);return i.block=!0,r<0&&this.level--,i.level=this.level,r>0&&this.level++,this.tokens.push(i),i},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},i.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),r(t));e++);return e},i.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!r(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},i.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,n,i){var o,a,s,l,u,c,f,d=e;if(e>=t)return"";for(c=new Array(t-e),o=0;d<t;d++,o++){for(a=0,f=l=this.bMarks[d],u=d+1<t||i?this.eMarks[d]+1:this.eMarks[d];l<u&&a<n;){if(s=this.src.charCodeAt(l),r(s))9===s?a+=4-(a+this.bsCount[d])%4:a++;else{if(!(l-f<this.tShift[d]))break;a++}l++}c[o]=a>n?new Array(a-n+1).join(" ")+this.src.slice(l,u):this.src.slice(l,u)}return c.join("")},i.prototype.Token=t,e.exports=i})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(51),r=[["text",n(170)],["newline",n(171)],["escape",n(172)],["backticks",n(173)],["strikethrough",n(77).tokenize],["emphasis",n(78).tokenize],["link",n(174)],["image",n(175)],["autolink",n(176)],["html_inline",n(177)],["entity",n(178)]],i=[["balance_pairs",n(179)],["strikethrough",n(77).postProcess],["emphasis",n(78).postProcess],["text_collapse",n(180)]];function o(){var e;for(this.ruler=new t,e=0;e<r.length;e++)this.ruler.push(r[e][0],r[e][1]);for(this.ruler2=new t,e=0;e<i.length;e++)this.ruler2.push(i[e][0],i[e][1])}o.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,s=e.cache;if(void 0===s[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,s[r]=e.pos}else e.pos=s[r]},o.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},o.prototype.parse=function(e,t,n,r){var i,o,a,s=new this.State(e,t,n,r);for(this.tokenize(s),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](s)},o.prototype.State=n(181),e.exports=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}e.exports=function(e,n){for(var r=e.pos;r<e.posMax&&!t(e.src.charCodeAt(r));)r++;return r!==e.pos&&(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).isSpace;e.exports=function(e,n){var r,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;for(r=e.pending.length-1,i=e.posMax,n||(r>=0&&32===e.pending.charCodeAt(r)?r>=1&&32===e.pending.charCodeAt(r-1)?(e.pending=e.pending.replace(/ +$/,""),e.push("hardbreak","br",0)):(e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0)):e.push("softbreak","br",0)),o++;o<i&&t(e.src.charCodeAt(o));)o++;return e.pos=o,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";for(var t=n(12).isSpace,r=[],i=0;i<256;i++)r.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){r[e.charCodeAt(0)]=1})),e.exports=function(e,n){var i,o=e.pos,a=e.posMax;if(92!==e.src.charCodeAt(o))return!1;if(++o<a){if((i=e.src.charCodeAt(o))<256&&0!==r[i])return n||(e.pending+=e.src[o]),e.pos+=2,!0;if(10===i){for(n||e.push("hardbreak","br",0),o++;o<a&&(i=e.src.charCodeAt(o),t(i));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l,u,c=e.pos;if(96!==e.src.charCodeAt(c))return!1;for(n=c,c++,r=e.posMax;c<r&&96===e.src.charCodeAt(c);)c++;if(l=(i=e.src.slice(n,c)).length,e.backticksScanned&&(e.backticks[l]||0)<=n)return t||(e.pending+=i),e.pos+=l,!0;for(a=s=c;-1!==(a=e.src.indexOf("`",s));){for(s=a+1;s<r&&96===e.src.charCodeAt(s);)s++;if((u=s-a)===l)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(c,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=s,!0;e.backticks[u]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=l,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).normalizeReference,r=n(12).isSpace;e.exports=function(e,n){var i,o,a,s,l,u,c,f,d="",p="",h=e.pos,m=e.posMax,g=e.pos,v=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(l=e.pos+1,(s=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((u=s+1)<m&&40===e.src.charCodeAt(u)){for(v=!1,u++;u<m&&(o=e.src.charCodeAt(u),r(o)||10===o);u++);if(u>=m)return!1;if(g=u,(c=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok){for(d=e.md.normalizeLink(c.str),e.md.validateLink(d)?u=c.pos:d="",g=u;u<m&&(o=e.src.charCodeAt(u),r(o)||10===o);u++);if(c=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<m&&g!==u&&c.ok)for(p=c.str,u=c.pos;u<m&&(o=e.src.charCodeAt(u),r(o)||10===o);u++);}(u>=m||41!==e.src.charCodeAt(u))&&(v=!0),u++}if(v){if(void 0===e.env.references)return!1;if(u<m&&91===e.src.charCodeAt(u)?(g=u+1,(u=e.md.helpers.parseLinkLabel(e,u))>=0?a=e.src.slice(g,u++):u=s+1):u=s+1,a||(a=e.src.slice(l,s)),!(f=e.env.references[t(a)]))return e.pos=h,!1;d=f.href,p=f.title}return n||(e.pos=l,e.posMax=s,e.push("link_open","a",1).attrs=i=[["href",d]],p&&i.push(["title",p]),e.md.inline.tokenize(e),e.push("link_close","a",-1)),e.pos=u,e.posMax=m,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(12).normalizeReference,r=n(12).isSpace;e.exports=function(e,n){var i,o,a,s,l,u,c,f,d,p,h,m,g,v="",y=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(u=e.pos+2,(l=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((c=l+1)<b&&40===e.src.charCodeAt(c)){for(c++;c<b&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);if(c>=b)return!1;for(g=c,(d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok&&(v=e.md.normalizeLink(d.str),e.md.validateLink(v)?c=d.pos:v=""),g=c;c<b&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);if(d=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&g!==c&&d.ok)for(p=d.str,c=d.pos;c<b&&(o=e.src.charCodeAt(c),r(o)||10===o);c++);else p="";if(c>=b||41!==e.src.charCodeAt(c))return e.pos=y,!1;c++}else{if(void 0===e.env.references)return!1;if(c<b&&91===e.src.charCodeAt(c)?(g=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?s=e.src.slice(g,c++):c=l+1):c=l+1,s||(s=e.src.slice(u,l)),!(f=e.env.references[t(s)]))return e.pos=y,!1;v=f.href,p=f.title}return n||(a=e.src.slice(u,l),e.md.inline.parse(a,e.md,e.env,m=[]),(h=e.push("image","img",0)).attrs=i=[["src",v],["alt",""]],h.children=m,h.content=a,p&&i.push(["title",p])),e.pos=c,e.posMax=b,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,n=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;e.exports=function(e,r){var i,o,a,s,l,u,c=e.pos;if(60!==e.src.charCodeAt(c))return!1;for(l=e.pos,u=e.posMax;;){if(++c>=u)return!1;if(60===(s=e.src.charCodeAt(c)))return!1;if(62===s)break}return i=e.src.slice(l+1,c),n.test(i)?(o=e.md.normalizeLink(i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0)):!!t.test(i)&&(o=e.md.normalizeLink("mailto:"+i),!!e.md.validateLink(o)&&(r||((a=e.push("link_open","a",1)).attrs=[["href",o]],a.markup="autolink",a.info="auto",(a=e.push("text","",0)).content=e.md.normalizeLinkText(i),(a=e.push("link_close","a",-1)).markup="autolink",a.info="auto"),e.pos+=i.length+2,!0))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(76).HTML_TAG_RE;e.exports=function(e,n){var r,i,o,a=e.pos;return!(!e.md.options.html||(o=e.posMax,60!==e.src.charCodeAt(a)||a+2>=o||33!==(r=e.src.charCodeAt(a+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r)||!(i=e.src.slice(a).match(t))||(n||(e.push("html_inline","",0).content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,0)))}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(71),r=n(12).has,i=n(12).isValidEntityCode,o=n(12).fromCodePoint,a=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,s=/^&([a-z][a-z0-9]{1,31});/i;e.exports=function(e,n){var l,u,c=e.pos,f=e.posMax;if(38!==e.src.charCodeAt(c))return!1;if(c+1<f)if(35===e.src.charCodeAt(c+1)){if(u=e.src.slice(c).match(a))return n||(l="x"===u[1][0].toLowerCase()?parseInt(u[1].slice(1),16):parseInt(u[1],10),e.pending+=i(l)?o(l):o(65533)),e.pos+=u[0].length,!0}else if((u=e.src.slice(c).match(s))&&r(t,u[1]))return n||(e.pending+=t[u[1]]),e.pos+=u[0].length,!0;return n||(e.pending+="&"),e.pos++,!0}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t){var n,r,i,o,a,s,l,u,c={},f=t.length;for(n=0;n<f;n++)if((i=t[n]).length=i.length||0,i.close){for(c.hasOwnProperty(i.marker)||(c[i.marker]=[-1,-1,-1,-1,-1,-1]),a=c[i.marker][(i.open?3:0)+i.length%3],(r=n-i.jump-1)<-1&&(r=-1),s=r;r>a;r-=o.jump+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(l=!0)),!l)){u=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+u,i.open=!1,o.end=n,o.jump=u,o.close=!1,s=-1;break}-1!==s&&(c[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}e.exports=function(e){var n,r=e.tokens_meta,i=e.tokens_meta.length;for(t(0,e.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&t(0,r[n].delimiters)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var t=n(52),r=n(12).isWhiteSpace,i=n(12).isPunctChar,o=n(12).isMdAsciiPunct;function a(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}a.prototype.pushPending=function(){var e=new t("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},a.prototype.push=function(e,n,r){this.pending&&this.pushPending();var i=new t(e,n,r),o=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},a.prototype.scanDelims=function(e,t){var n,a,s,l,u,c,f,d,p,h=e,m=!0,g=!0,v=this.posMax,y=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;h<v&&this.src.charCodeAt(h)===y;)h++;return s=h-e,a=h<v?this.src.charCodeAt(h):32,f=o(n)||i(String.fromCharCode(n)),p=o(a)||i(String.fromCharCode(a)),c=r(n),(d=r(a))?m=!1:p&&(c||f||(m=!1)),c?g=!1:f&&(d||p||(g=!1)),t?(l=m,u=g):(l=m&&(!g||f),u=g&&(!m||p)),{can_open:l,can_close:u,length:s}},a.prototype.Token=t,e.exports=a})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object Function]"===r(e)}function o(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},s={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(e){var t=e.re=n(183)(e.__opts__),a=e.__tlds__.slice();function s(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||a.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),a.push(t.src_xn),t.src_tlds=a.join("|"),t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");var l=[];function u(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var o={validate:null,link:null};if(e.__compiled__[t]=o,"[object Object]"===r(n))return function(e){return"[object RegExp]"===r(e)}(n.validate)?o.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate):i(n.validate)?o.validate=n.validate:u(t,n),void(i(n.normalize)?o.normalize=n.normalize:n.normalize?u(t,n):o.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===r(e)}(n)?u(t,n):l.push(t)}})),l.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var c=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(o).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+c+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><｜]|"+t.src_ZPCc+"))("+c+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function c(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function f(e,t){var n=new c(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function d(e,n){if(!(this instanceof d))return new d(e,n);var r;n||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(n=e,e={})),this.__opts__=t({},a,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=t({},s,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}d.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},d.prototype.set=function(e){return this.__opts__=t(this.__opts__,e),this},d.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l;if(this.re.schema_test.test(e))for((s=this.re.schema_search).lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},d.prototype.pretest=function(e){return this.re.pretest.test(e)},d.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},d.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(f(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(f(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},d.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},d.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},d.prototype.onCompile=function(){},e.exports=d})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){var t={};return t.src_Any=n(73).source,t.src_Cc=n(74).source,t.src_Z=n(75).source,t.src_P=n(50).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><｜]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><｜]|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><｜]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><｜]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|｜]|"+t.src_ZPCc+"))((?![$+<=>^`|｜])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){(function(e,r){var i,o,a,s;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,s=function(){"use strict";
/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r&&r;o.global!==o&&o.window!==o&&o.self;var s,l=2147483647,u=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(d[e])}function g(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function v(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+g((e=e.replace(f,".")).split("."),t).join(".")}function y(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function b(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function _(e){var t,n,r,i,o,a,s,u,c,f,d,h=[],g=e.length,v=0,y=128,T=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<g;){for(o=v,a=1,s=36;i>=g&&m("invalid-input"),((u=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||u>p((l-v)/a))&&m("overflow"),v+=u*a,!(u<(c=s<=T?1:s>=T+26?26:s-T));s+=36)a>p(l/(f=36-c))&&m("overflow"),a*=f;T=E(v-o,t=h.length+1,0==o),p(v/t)>l-y&&m("overflow"),y+=p(v/t),v%=t,h.splice(v++,0,y)}return b(h)}function x(e){var t,n,r,i,o,a,s,u,c,f,d,g,v,b,_,x=[];for(g=(e=y(e)).length,t=128,n=0,o=72,a=0;a<g;++a)(d=e[a])<128&&x.push(h(d));for(r=i=x.length,i&&x.push("-");r<g;){for(s=l,a=0;a<g;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>p((l-n)/(v=r+1))&&m("overflow"),n+=(s-t)*v,t=s,a=0;a<g;++a)if((d=e[a])<t&&++n>l&&m("overflow"),d==t){for(u=n,c=36;!(u<(f=c<=o?1:c>=o+26?26:c-o));c+=36)_=u-f,b=36-f,x.push(h(T(f+_%b,0))),u=p(_/b);x.push(h(T(u,0))),o=E(n,v,r==i),n=0,++r}++n,++t}return x.join("")}s={version:"1.4.1",ucs2:{decode:y,encode:b},decode:_,encode:x,toASCII:function(e){return v(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return v(e,(function(e){return u.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(a=function(){return s}.call(t,n,t,e))||(e.exports=a)}()},o=[],void 0===(a="function"==typeof(i=s)?i.apply(t,o):i)||(e.exports=a)}).call(this,n(185)(e),n(44))},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";e.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeWhitespace=function(e){return e.replace(n," ")},e.invalidCharacters=void 0;const t=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]);e.invalidCharacters=t;const n=new RegExp("["+t.join("")+"]","g")})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){
/*!
   * escape-html
   * Copyright(c) 2012-2013 TJ Holowaychuk
   * Copyright(c) 2015 Andreas Lubbe
   * Copyright(c) 2015 Tiancheng "Timothy" Gu
   * MIT Licensed
   */
"use strict";var t=/["'&<>]/;e.exports=function(e){var n,r=""+e,i=t.exec(r);if(!i)return r;var o="",a=0,s=0;for(a=i.index;a<r.length;a++){switch(r.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}s!==a&&(o+=r.substring(s,a)),s=a+1,o+=n}return s!==a?o+r.substring(s,a):o}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",(function(e){e||(e=t);for(var n=1/0,i=this.listSelections(),o=null,a=i.length-1;a>=0;a--){var s=i[a].from(),l=i[a].to();s.line>=n||(l.line>=n&&(l=r(n,0)),n=s.line,null==o?this.uncomment(s,l,e)?o="un":(this.lineComment(s,l,e),o="line"):"un"==o?this.uncomment(s,l,e):this.lineComment(s,l,e))}})),e.defineExtension("lineComment",(function(e,i,s){s||(s=t);var l=this,u=a(l,e),c=l.getLine(e.line);if(null!=c&&(f=e,d=c,!/\bstring\b/.test(l.getTokenTypeAt(r(f.line,0)))||/^[\'\"\`]/.test(d))){var f,d,p=s.lineComment||u.lineComment;if(p){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,l.lastLine()+1),m=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==i.line;l.operation((function(){if(s.indent){for(var t=null,i=e.line;i<h;++i){var a=(u=l.getLine(i)).slice(0,o(u));(null==t||t.length>a.length)&&(t=a)}for(i=e.line;i<h;++i){var u=l.getLine(i),c=t.length;(g||n.test(u))&&(u.slice(0,c)!=t&&(c=o(u)),l.replaceRange(t+p+m,r(i,0),r(i,c)))}}else for(i=e.line;i<h;++i)(g||n.test(l.getLine(i)))&&l.replaceRange(p+m,r(i,0))}))}else(s.blockCommentStart||u.blockCommentStart)&&(s.fullLines=!0,l.blockComment(e,i,s))}})),e.defineExtension("blockComment",(function(e,o,s){s||(s=t);var l=this,u=a(l,e),c=s.blockCommentStart||u.blockCommentStart,f=s.blockCommentEnd||u.blockCommentEnd;if(c&&f){if(!/\bcomment\b/.test(l.getTokenTypeAt(r(e.line,0)))){var d=Math.min(o.line,l.lastLine());d!=e.line&&0==o.ch&&n.test(l.getLine(d))&&--d;var p=null==s.padding?" ":s.padding;e.line>d||l.operation((function(){if(0!=s.fullLines){var t=n.test(l.getLine(d));l.replaceRange(p+f,r(d)),l.replaceRange(c+p,r(e.line,0));var a=s.blockCommentLead||u.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=d;++h)(h!=d||t)&&l.replaceRange(a+p,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(f,o),m&&l.setSelection(g?o:l.getCursor("from"),o),l.replaceRange(c,e)}}))}}else(s.lineComment||u.lineComment)&&0!=s.fullLines&&l.lineComment(e,o,s)})),e.defineExtension("uncomment",(function(e,i,o){o||(o=t);var s,l=this,u=a(l,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),f=Math.min(e.line,c),d=o.lineComment||u.lineComment,p=[],h=null==o.padding?" ":o.padding;e:if(d){for(var m=f;m<=c;++m){var g=l.getLine(m),v=g.indexOf(d);if(v>-1&&!/comment/.test(l.getTokenTypeAt(r(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;p.push(g)}if(l.operation((function(){for(var e=f;e<=c;++e){var t=p[e-f],n=t.indexOf(d),i=n+d.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,l.replaceRange("",r(e,n),r(e,i)))}})),s)return!0}var y=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var T=o.blockCommentLead||u.blockCommentLead,E=l.getLine(f),_=E.indexOf(y);if(-1==_)return!1;var x=c==f?E:l.getLine(c),C=x.indexOf(b,c==f?_+y.length:0),O=r(f,_+1),S=r(c,C+1);if(-1==C||!/comment/.test(l.getTokenTypeAt(O))||!/comment/.test(l.getTokenTypeAt(S))||l.getRange(O,S,"\n").indexOf(b)>-1)return!1;var w=E.lastIndexOf(y,e.ch),k=-1==w?-1:E.slice(0,e.ch).indexOf(b,w+y.length);if(-1!=w&&-1!=k&&k+b.length!=e.ch)return!1;k=x.indexOf(b,i.ch);var N=x.slice(i.ch).lastIndexOf(y,k-i.ch);return w=-1==k||-1==N?-1:i.ch+N,(-1==k||-1==w||w==i.ch)&&(l.operation((function(){l.replaceRange("",r(c,C-(h&&x.slice(C-h.length,C)==h?h.length:0)),r(c,C+b.length));var e=_+y.length;if(h&&E.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(f,_),r(f,e)),T)for(var t=f+1;t<=c;++t){var i=l.getLine(t),o=i.indexOf(T);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+T.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}})),!0)}))}(n(10))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";!function(e){function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.line<s)return null;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold&&"fold"!==o){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var u=l(!0);if(r(t,i,"scanUp"))for(;!u&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),u=l(!1);if(u&&!u.cleared&&"unfold"!==o){var c=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,u);e.on(c,"mousedown",(function(t){f.clear(),e.e_preventDefault(t)}));var f=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});f.on("clear",(function(n,r){e.signal(t,"unfold",t,n,r)})),e.signal(t,"fold",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",(function(e,n,r){t(this,e,n,r)})),e.defineExtension("isFolded",(function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0})),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"fold")}))},e.commands.unfoldAll=function(t){t.operation((function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),null,"unfold")}))},e.registerHelper("fold","combine",(function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}})),e.registerHelper("fold","auto",(function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}}));var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",(function(e,t){return r(this,e,t)}))}(n(10))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(10));n(38);var i=n(28);r.default.registerHelper("hint","graphql",(function(e,t){var n=t.schema;if(n){var o=e.getCursor(),a=e.getTokenAt(o),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,l=new i.Position(o.line,s),u={list:i.getAutocompleteSuggestions(n,e.getValue(),l,a,t.externalFragments).map((function(e){return{text:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}})),from:{line:o.line,ch:s},to:{line:o.line,ch:a.end}};return u&&u.list&&u.list.length>0&&(u.from=r.default.Pos(u.from.line,u.from.ch),u.to=r.default.Pos(u.to.line,u.to.ch),r.default.signal(e,"hasCompletion",e,u,a)),u}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(10)),i=n(28),o=["error","warning","information","hint"],a={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};r.default.registerHelper("lint","graphql",(function(e,t){var n=t.schema;return i.getDiagnostics(e,n,t.validationRules,void 0,t.externalFragments).map((function(e){return{message:e.message,severity:e.severity?o[e.severity-1]:o[0],type:e.source?a[e.source]:void 0,from:r.default.Pos(e.range.start.line,e.range.start.character),to:r.default.Pos(e.range.end.line,e.range.end.character)}}))}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=e(n(10)),o=e(n(80)),a=n(82);function s(e,t,n){var r,i=(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"";"__"!==i.slice(0,2)&&(c(e,t,n,t.parentType),d(e,".")),d(e,i,"field-name",n,a.getFieldReference(t))}function l(e,t,n){var r;d(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,a.getDirectiveReference(t))}function u(e,t,n,r){d(e,": "),c(e,t,n,r)}function c(e,t,n,i){i instanceof r.GraphQLNonNull?(c(e,t,n,i.ofType),d(e,"!")):i instanceof r.GraphQLList?(d(e,"["),c(e,t,n,i.ofType),d(e,"]")):d(e,(null==i?void 0:i.name)||"","type-name",n,a.getTypeReference(t,i))}function f(e,t,n){var r=n.description;if(r){var i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r)),e.appendChild(i)}!function(e,t,n){var r=n.deprecationReason;if(r){var i=document.createElement("div");i.className="info-deprecation",t.renderDescription?i.innerHTML=t.renderDescription(r):i.appendChild(document.createTextNode(r));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),i.insertBefore(o,i.firstChild),e.appendChild(i)}}(e,t,n)}function d(e,t,n,r,i){if(void 0===n&&(n=""),void 0===r&&(r={onClick:null}),void 0===i&&(i=null),n){var o=r.onClick,a=void 0;o?((a=document.createElement("a")).href="javascript:void 0",a.addEventListener("click",(function(e){o(i,e)}))):a=document.createElement("span"),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}else e.appendChild(document.createTextNode(t))}n(83),i.default.registerHelper("info","graphql",(function(e,t){if(t.schema&&e.state){var n,r=e.state,i=r.kind,p=r.step,h=o.default(t.schema,e.state);return"Field"===i&&0===p&&h.fieldDef||"AliasedField"===i&&2===p&&h.fieldDef?(function(e,t,n){s(e,t,n),u(e,t,n,t.type)}(n=document.createElement("div"),h,t),f(n,t,h.fieldDef),n):"Directive"===i&&1===p&&h.directiveDef?(l(n=document.createElement("div"),h,t),f(n,t,h.directiveDef),n):"Argument"===i&&0===p&&h.argDef?(function(e,t,n){var r;t.directiveDef?l(e,t,n):t.fieldDef&&s(e,t,n);var i=(null===(r=t.argDef)||void 0===r?void 0:r.name)||"";d(e,"("),d(e,i,"arg-name",n,a.getArgumentReference(t)),u(e,t,n,t.inputType),d(e,")")}(n=document.createElement("div"),h,t),f(n,t,h.argDef),n):"EnumValue"===i&&h.enumValue&&h.enumValue.description?(function(e,t,n){var r,i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";c(e,t,n,t.inputType),d(e,"."),d(e,i,"enum-value",n,a.getEnumValueReference(t))}(n=document.createElement("div"),h,t),f(n,t,h.enumValue),n):"NamedType"===i&&h.type&&h.type.description?(c(n=document.createElement("div"),h,t,h.type),f(n,t,h.type),n):void 0}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(10)),i=e(n(80)),o=n(82);n(197),r.default.registerHelper("jump","graphql",(function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,r=n.kind,a=n.step,s=i.default(t.schema,n);return"Field"===r&&0===a&&s.fieldDef||"AliasedField"===r&&2===a&&s.fieldDef?o.getFieldReference(s):"Directive"===r&&1===a&&s.directiveDef?o.getDirectiveReference(s):"Argument"===r&&0===a&&s.argDef?o.getArgumentReference(s):"EnumValue"===r&&s.enumValue?o.getEnumValueReference(s):"NamedType"===r&&s.type?o.getTypeReference(s):void 0}}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(10));function i(e,t){var n=t.target||t.srcElement;if(n instanceof HTMLElement&&"SPAN"===(null==n?void 0:n.nodeName)){var r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&l(e)}}function o(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&u(e):e.state.jump.cursor=null}function a(e,t){if(!e.state.jump.isHoldingModifier&&t.key===(s?"Meta":"Control")){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&l(e);var n=function(a){a.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&u(e),r.default.off(document,"keyup",n),r.default.off(document,"click",i),e.off("mousedown",o))},i=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},o=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};r.default.on(document,"keyup",n),r.default.on(document,"click",i),e.on("mousedown",o)}}r.default.defineOption("jump",!1,(function(e,t,n){if(n&&n!==r.default.Init){var s=e.state.jump.onMouseOver;r.default.off(e.getWrapperElement(),"mouseover",s);var l=e.state.jump.onMouseOut;r.default.off(e.getWrapperElement(),"mouseout",l),r.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var u=e.state.jump={options:t,onMouseOver:i.bind(null,e),onMouseOut:o.bind(null,e),onKeyDown:a.bind(null,e)};r.default.on(e.getWrapperElement(),"mouseover",u.onMouseOver),r.default.on(e.getWrapperElement(),"mouseout",u.onMouseOut),r.default.on(document,"keydown",u.onKeyDown)}}));var s="undefined"!=typeof navigator&&navigator&&-1!==navigator.appVersion.indexOf("Mac");function l(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),r=e.getTokenAt(n,!0),i=e.state.jump.options,o=i.getDestination||e.getHelper(n,"jump");if(o){var a=o(r,i,e);if(a){var s=e.markText({line:n.line,ch:r.start},{line:n.line,ch:r.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function u(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(10)),i=e(n(199));r.default.defineMode("graphql",i.default)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(28),i=e(n(200));t.default=function(e){var t=r.onlineParser({eatWhitespace:function(e){return e.eatWhile(r.isIgnored)},lexRules:r.LexRules,parseRules:r.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:i.default,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(53),n(37)],void 0===(o="function"==typeof(r=function(e,t,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.VariableEditor=void 0,t=o(t),r=o(r),i=o(i);class s extends t.default.Component{constructor(e){super(e),a(this,"CodeMirror",void 0),a(this,"editor",null),a(this,"cachedValue",void 0),a(this,"_node",null),a(this,"ignoreChangeEvent",!1),a(this,"_onKeyUp",(e,t)=>{const n=t.keyCode;this.editor&&(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&this.editor.execCommand("autocomplete")}),a(this,"_onEdit",()=>{this.editor&&(this.ignoreChangeEvent||(this.cachedValue=this.editor.getValue(),this.props.onEdit&&this.props.onEdit(this.cachedValue)))}),a(this,"_onHasCompletion",(e,t)=>{(0,r.default)(e,t,this.props.onHintInformationRender)}),this.cachedValue=e.value||""}componentDidMount(){this.CodeMirror=n(10),n(38),n(39),n(54),n(41),n(40),n(55),n(30),n(42),n(31),n(43),n(202),n(204),n(206);const e=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},lint:{variableToType:this.props.variableToType},hintOptions:{variableToType:this.props.variableToType,closeOnUnfocus:!1,completeSingle:!1,container:this._node},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Alt-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Shift-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Cmd-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Ctrl-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Shift-Ctrl-P":()=>{this.props.onPrettifyQuery&&this.props.onPrettifyQuery()},"Shift-Ctrl-M":()=>{this.props.onMergeQuery&&this.props.onMergeQuery()},...i.default}});e.on("change",this._onEdit),e.on("keyup",this._onKeyUp),e.on("hasCompletion",this._onHasCompletion)}componentDidUpdate(e){if(this.CodeMirror=n(10),this.editor){if(this.ignoreChangeEvent=!0,this.props.variableToType!==e.variableToType&&(this.editor.options.lint.variableToType=this.props.variableToType,this.editor.options.hintOptions.variableToType=this.props.variableToType,this.CodeMirror.signal(this.editor,"change",this.editor)),this.props.value!==e.value&&this.props.value!==this.cachedValue){const e=this.props.value||"";this.cachedValue=e,this.editor.setValue(e)}this.ignoreChangeEvent=!1}}componentWillUnmount(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)}render(){return t.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:e=>{this._node=e}})}getCodeMirror(){return this.editor}getClientHeight(){return this._node&&this._node.clientHeight}}e.VariableEditor=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(10)),i=n(11),o=e(n(81)),a=e(n(203));function s(e,t,n){var r="Invalid"===t.state.kind?t.state.prevState:t.state,s=r.kind,l=r.step;if("Document"===s&&0===l)return a.default(e,t,[{text:"{"}]);var u=n.variableToType;if(u){var c=function(e,t){var n={type:null,fields:null};return o.default(t,(function(t){if("Variable"===t.kind)n.type=e[t.name];else if("ListValue"===t.kind){var r=n.type?i.getNullableType(n.type):void 0;n.type=r instanceof i.GraphQLList?r.ofType:null}else if("ObjectValue"===t.kind){var o=n.type?i.getNamedType(n.type):void 0;n.fields=o instanceof i.GraphQLInputObjectType?o.getFields():null}else if("ObjectField"===t.kind){var a=t.name&&n.fields?n.fields[t.name]:null;n.type=a&&a.type}})),n}(u,t.state);if("Document"===s||"Variable"===s&&0===l){var f=Object.keys(u);return a.default(e,t,f.map((function(e){return{text:'"'+e+'": ',type:u[e]}})))}if(("ObjectValue"===s||"ObjectField"===s&&0===l)&&c.fields){var d=Object.keys(c.fields).map((function(e){return c.fields[e]}));return a.default(e,t,d.map((function(e){return{text:'"'+e.name+'": ',type:e.type,description:e.description}})))}if("StringValue"===s||"NumberValue"===s||"BooleanValue"===s||"NullValue"===s||"ListValue"===s&&1===l||"ObjectField"===s&&2===l||"Variable"===s&&2===l){var p=c.type?i.getNamedType(c.type):void 0;if(p instanceof i.GraphQLInputObjectType)return a.default(e,t,[{text:"{"}]);if(p instanceof i.GraphQLEnumType){var h=p.getValues();return a.default(e,t,h.map((function(e){return{text:'"'+e.name+'"',type:p,description:e.description}})))}if(p===i.GraphQLBoolean)return a.default(e,t,[{text:"true",type:i.GraphQLBoolean,description:"Not false."},{text:"false",type:i.GraphQLBoolean,description:"Not true."}])}}}r.default.registerHelper("hint","graphql-variables",(function(e,t){var n=e.getCursor(),i=e.getTokenAt(n),o=s(n,i,t);return o&&o.list&&o.list.length>0&&(o.from=r.default.Pos(o.from.line,o.from.ch),o.to=r.default.Pos(o.to.line,o.to.ch),r.default.signal(e,"hasCompletion",e,o,i)),o}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";function e(e,t){var n=e.filter(t);return 0===n.length?e:n}function n(e){return e.toLowerCase().replace(/\W/g,"")}function r(e,t){var n=function(e,t){var n,r,i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){var s=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+s),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+s))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t,i,o){var a=function(t,i){return i?e(e(t.map((function(e){return{proximity:r(n(e.text),i),entry:e}})),(function(e){return e.proximity<=2})),(function(e){return!e.entry.isDeprecated})).sort((function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length})).map((function(e){return e.entry})):e(t,(function(e){return!e.isDeprecated}))}(o,n(i.string));if(a){var s=null!==i.type&&/"|\w/.test(i.string[0])?i.start:i.end;return{list:a,from:{line:t.line,ch:s},to:{line:t.line,ch:i.end}}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(10)),o=n(11),a=r(n(205));function s(t,n,r){var i=[];return r.members.forEach((function(r){var a;if(r){var s=null===(a=r.key)||void 0===a?void 0:a.value,c=n[s];c?function e(t,n){if(!t||!n)return[];if(t instanceof o.GraphQLNonNull)return"Null"===n.kind?[[n,'Type "'+t+'" is non-nullable and cannot be null.']]:e(t.ofType,n);if("Null"===n.kind)return[];if(t instanceof o.GraphQLList){var r=t.ofType;return"Array"===n.kind?u(n.values||[],(function(t){return e(r,t)})):e(r,n)}if(t instanceof o.GraphQLInputObjectType){if("Object"!==n.kind)return[[n,'Type "'+t+'" must be an Object.']];var i=Object.create(null),a=u(n.members,(function(n){var r,o=null===(r=null==n?void 0:n.key)||void 0===r?void 0:r.value;i[o]=!0;var a=t.getFields()[o];if(!a)return[[n.key,'Type "'+t+'" does not have a field "'+o+'".']];var s=a?a.type:void 0;return e(s,n.value)}));return Object.keys(t.getFields()).forEach((function(e){i[e]||t.getFields()[e].type instanceof o.GraphQLNonNull&&a.push([n,'Object of type "'+t+'" is missing required field "'+e+'".'])})),a}return"Boolean"===t.name&&"Boolean"!==n.kind||"String"===t.name&&"String"!==n.kind||"ID"===t.name&&"Number"!==n.kind&&"String"!==n.kind||"Float"===t.name&&"Number"!==n.kind||"Int"===t.name&&("Number"!==n.kind||(0|n.value)!==n.value)||(t instanceof o.GraphQLEnumType||t instanceof o.GraphQLScalarType)&&("String"!==n.kind&&"Number"!==n.kind&&"Boolean"!==n.kind&&"Null"!==n.kind||null==(s=t.parseValue(n.value))||s!=s)?[[n,'Expected value of type "'+t+'".']]:[];var s}(c,r.value).forEach((function(n){var r=e(n,2),o=r[0],a=r[1];i.push(l(t,o,a))})):i.push(l(t,r.key,'Variable "$'+s+'" does not appear in any GraphQL query.'))}})),i}function l(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function u(e,t){return Array.prototype.concat.apply([],e.map(t))}i.default.registerHelper("lint","graphql-variables",(function(e,t,n){if(!e)return[];var r;try{r=a.default(e)}catch(e){if(e.stack)throw e;return[l(n,e,e.message)]}var i=t.variableToType;return i?s(n,i,r):[]}))})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e,n,r,i,o,a,s;function l(){var e=r,t=[];if(d("{"),!h("}")){do{t.push(u())}while(h(","));d("}")}return{kind:"Object",start:e,end:o,members:t}}function u(){var e=r,t="String"===s?f():null;d("String"),d(":");var n=c();return{kind:"Member",start:e,end:o,key:t,value:n}}function c(){switch(s){case"[":return function(){var e=r,t=[];if(d("["),!h("]")){do{t.push(c())}while(h(","));d("]")}return{kind:"Array",start:e,end:o,values:t}}();case"{":return l();case"String":case"Number":case"Boolean":case"Null":var e=f();return g(),e}d("Value")}function f(){return{kind:s,start:r,end:i,value:JSON.parse(e.slice(r,i))}}function d(t){if(s!==t){var n;if("EOF"===s)n="[end of file]";else if(i-r>1)n="`"+e.slice(r,i)+"`";else{var o=e.slice(r).match(/^.+?\b/);n="`"+(o?o[0]:e[r])+"`"}throw p("Expected "+t+" but found "+n+".")}g()}function p(e){return{message:e,start:r,end:i}}function h(e){if(s===e)return g(),!0}function m(){return i<n&&(i++,a=i===n?0:e.charCodeAt(i)),a}function g(){for(o=i;9===a||10===a||13===a||32===a;)m();if(0!==a){switch(r=i,a){case 34:return s="String",function(){for(m();34!==a&&a>31;)if(92===a)switch(a=m()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:m();break;case 117:m(),v(),v(),v(),v();break;default:throw p("Bad character escape sequence.")}else{if(i===n)throw p("Unterminated string.");m()}if(34!==a)throw p("Unterminated string.");m()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s="Number",45===a&&m(),48===a?m():y(),46===a&&(m(),y()),void(69!==a&&101!==a||(43!==(a=m())&&45!==a||m(),y()));case 102:if("false"!==e.slice(r,r+5))break;return i+=4,m(),void(s="Boolean");case 110:if("null"!==e.slice(r,r+4))break;return i+=3,m(),void(s="Null");case 116:if("true"!==e.slice(r,r+4))break;return i+=3,m(),void(s="Boolean")}s=e[r],m()}else s="EOF"}function v(){if(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)return m();throw p("Expected hexadecimal digit.")}function y(){if(a<48||a>57)throw p("Expected decimal digit.");do{m()}while(a>=48&&a<=57)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){e=t,n=t.length,r=i=o=-1,m(),g();var a=l();return d("EOF"),a}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(10)),i=n(28);function o(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.default.defineMode("graphql-variables",(function(e){var t=i.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:a,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var a={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[i.p("{"),i.list("Variable",i.opt(i.p(","))),i.p("}")],Variable:[l("variable"),i.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[i.t("Number","number")],StringValue:[i.t("String","string")],BooleanValue:[i.t("Keyword","builtin")],NullValue:[i.t("Keyword","keyword")],ListValue:[i.p("["),i.list("Value",i.opt(i.p(","))),i.p("]")],ObjectValue:[i.p("{"),i.list("ObjectField",i.opt(i.p(","))),i.p("}")],ObjectField:[l("attribute"),i.p(":"),"Value"]};function l(e){return{style:e,match:function(e){return"String"===e.kind},update:function(e,t){e.name=t.value.slice(1,-1)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(53),n(37)],void 0===(o="function"==typeof(r=function(e,t,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderEditor=void 0,t=o(t),r=o(r),i=o(i);class s extends t.default.Component{constructor(e){super(e),a(this,"CodeMirror",void 0),a(this,"editor",null),a(this,"cachedValue",void 0),a(this,"_node",null),a(this,"ignoreChangeEvent",!1),a(this,"_onKeyUp",(e,t)=>{const n=t.keyCode;this.editor&&(n>=65&&n<=90||!t.shiftKey&&n>=48&&n<=57||t.shiftKey&&189===n||t.shiftKey&&222===n)&&this.editor.execCommand("autocomplete")}),a(this,"_onEdit",()=>{this.editor&&(this.ignoreChangeEvent||(this.cachedValue=this.editor.getValue(),this.props.onEdit&&this.props.onEdit(this.cachedValue)))}),a(this,"_onHasCompletion",(e,t)=>{(0,r.default)(e,t,this.props.onHintInformationRender)}),this.cachedValue=e.value||""}componentDidMount(){this.CodeMirror=n(10),n(38),n(39),n(54),n(41),n(40),n(55),n(30),n(42),n(31),n(208),n(43);const e=this.editor=this.CodeMirror(this._node,{value:this.props.value||"",lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:this.props.editorTheme||"graphiql",keyMap:"sublime",autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!this.props.readOnly&&"nocursor",foldGutter:{minFoldSize:4},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Alt-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Shift-Space":()=>this.editor.showHint({completeSingle:!1,container:this._node}),"Cmd-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Ctrl-Enter":()=>{this.props.onRunQuery&&this.props.onRunQuery()},"Shift-Ctrl-P":()=>{this.props.onPrettifyQuery&&this.props.onPrettifyQuery()},"Shift-Ctrl-M":()=>{this.props.onMergeQuery&&this.props.onMergeQuery()},...i.default}});e.on("change",this._onEdit),e.on("keyup",this._onKeyUp),e.on("hasCompletion",this._onHasCompletion)}componentDidUpdate(e){if(this.CodeMirror=n(10),this.editor){if(this.ignoreChangeEvent=!0,this.props.value!==e.value&&this.props.value!==this.cachedValue){const e=this.props.value||"";this.cachedValue=e,this.editor.setValue(e)}this.ignoreChangeEvent=!1}}componentWillUnmount(){this.editor&&(this.editor.off("change",this._onEdit),this.editor.off("keyup",this._onKeyUp),this.editor.off("hasCompletion",this._onHasCompletion),this.editor=null)}render(){return t.default.createElement("div",{className:"codemirrorWrap",style:{position:this.props.active?"relative":"absolute",visibility:this.props.active?"visible":"hidden"},ref:e=>{this._node=e}})}getCodeMirror(){return this.editor}getClientHeight(){return this._node&&this._node.clientHeight}}e.HeaderEditor=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e;(e=n(10)).defineMode("javascript",(function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=n.typescript,c=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),d=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e,t,n){return r=e,i=n,t}function m(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(p))return t.tokenize=m,h("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=m),h("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return h("number","number");if("."==r&&e.match(".."))return h("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return h(r);if("="==r&&e.eat(">"))return h("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return h("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),h("number","number");if("/"==r)return e.eat("*")?(t.tokenize=g,g(e,t)):e.eat("/")?(e.skipToEnd(),h("comment","comment")):ze(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),h("regexp","string-2")):(e.eat("="),h("operator","operator",e.current()));if("`"==r)return t.tokenize=v,v(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),h("meta","meta");if("#"==r&&e.eatWhile(c))return h("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),h("comment","comment");if(d.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?h("."):h("operator","operator",e.current());if(c.test(r)){e.eatWhile(c);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return h(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return h("async","keyword",i)}return h("variable","variable",i)}}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return h("comment","comment")}function v(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}r=!r&&"\\"==n}return h("quasi","string-2",e.current())}function y(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(c.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function T(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function E(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var _={state:null,column:null,marked:null,cc:null};function x(){for(var e=arguments.length-1;e>=0;e--)_.cc.push(arguments[e])}function C(){return x.apply(null,arguments),!0}function O(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function S(e){var t=_.state;if(_.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=function e(t,n){if(n){if(n.block){var r=e(t,n.prev);return r?r==n.prev?n:new k(r,n.vars,!0):null}return O(t,n.vars)?n:new k(n.prev,new N(t,n.vars),!1)}return null}(e,t.context);if(null!=r)return void(t.context=r)}else if(!O(e,t.localVars))return void(t.localVars=new N(e,t.localVars));n.globalVars&&!O(e,t.globalVars)&&(t.globalVars=new N(e,t.globalVars))}function w(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function k(e,t,n){this.prev=e,this.vars=t,this.block=n}function N(e,t){this.name=e,this.next=t}var D=new N("this",new N("arguments",null));function A(){_.state.context=new k(_.state.context,_.state.localVars,!1),_.state.localVars=D}function I(){_.state.context=new k(_.state.context,_.state.localVars,!0),_.state.localVars=null}function L(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}function R(e,t){var n=function(){var n=_.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new T(r,_.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function F(){var e=_.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function M(e){return function t(n){return n==e?C():";"==e||"}"==n||")"==n||"]"==n?x():C(t)}}function j(e,t){return"var"==e?C(R("vardef",t),ye,M(";"),F):"keyword a"==e?C(R("form"),B,j,F):"keyword b"==e?C(R("form"),j,F):"keyword d"==e?_.stream.match(/^\s*$/,!1)?C():C(R("stat"),H,M(";"),F):"debugger"==e?C(M(";")):"{"==e?C(R("}"),I,oe,F,L):";"==e?C():"if"==e?("else"==_.state.lexical.info&&_.state.cc[_.state.cc.length-1]==F&&_.state.cc.pop()(),C(R("form"),B,j,F,Ce)):"function"==e?C(ke):"for"==e?C(R("form"),Oe,j,F):"class"==e||u&&"interface"==t?(_.marked="keyword",C(R("form","class"==e?e:t),Le,F)):"variable"==e?u&&"declare"==t?(_.marked="keyword",C(j)):u&&("module"==t||"enum"==t||"type"==t)&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword","enum"==t?C(Ge):"type"==t?C(De,M("operator"),ce,M(";")):C(R("form"),be,M("{"),R("}"),oe,F,F)):u&&"namespace"==t?(_.marked="keyword",C(R("form"),V,j,F)):u&&"abstract"==t?(_.marked="keyword",C(j)):C(R("stat"),X):"switch"==e?C(R("form"),B,M("{"),R("}","switch"),I,oe,F,F,L):"case"==e?C(V,M(":")):"default"==e?C(M(":")):"catch"==e?C(R("form"),A,P,j,F,L):"export"==e?C(R("stat"),je,F):"import"==e?C(R("stat"),Ve,F):"async"==e?C(j):"@"==t?C(V,j):x(R("stat"),V,M(";"),F)}function P(e){if("("==e)return C(Ae,M(")"))}function V(e,t){return $(e,t,!1)}function U(e,t){return $(e,t,!0)}function B(e){return"("!=e?x():C(R(")"),H,M(")"),F)}function $(e,t,n){if(_.state.fatArrowAt==_.stream.start){var r=n?W:Q;if("("==e)return C(A,R(")"),re(Ae,")"),F,M("=>"),r,L);if("variable"==e)return x(A,be,M("=>"),r,L)}var i=n?G:q;return b.hasOwnProperty(e)?C(i):"function"==e?C(ke,i):"class"==e||u&&"interface"==t?(_.marked="keyword",C(R("form"),Ie,F)):"keyword c"==e||"async"==e?C(n?U:V):"("==e?C(R(")"),H,M(")"),F,i):"operator"==e||"spread"==e?C(n?U:V):"["==e?C(R("]"),qe,F,i):"{"==e?ie(ee,"}",null,i):"quasi"==e?x(K,i):"new"==e?C(function(e){return function(t){return"."==t?C(e?J:Y):"variable"==t&&u?C(me,e?G:q):x(e?U:V)}}(n)):"import"==e?C(V):C()}function H(e){return e.match(/[;\}\)\],]/)?x():x(V)}function q(e,t){return","==e?C(H):G(e,t,!1)}function G(e,t,n){var r=0==n?q:G,i=0==n?V:U;return"=>"==e?C(A,n?W:Q,L):"operator"==e?/\+\+|--/.test(t)||u&&"!"==t?C(r):u&&"<"==t&&_.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?C(R(">"),re(ce,">"),F,r):"?"==t?C(V,M(":"),i):C(i):"quasi"==e?x(K,r):";"!=e?"("==e?ie(U,")","call",r):"."==e?C(Z,r):"["==e?C(R("]"),H,M("]"),F,r):u&&"as"==t?(_.marked="keyword",C(ce,r)):"regexp"==e?(_.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),C(i)):void 0:void 0}function K(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?C(K):C(V,z)}function z(e){if("}"==e)return _.marked="string-2",_.state.tokenize=v,C(K)}function Q(e){return y(_.stream,_.state),x("{"==e?j:V)}function W(e){return y(_.stream,_.state),x("{"==e?j:U)}function Y(e,t){if("target"==t)return _.marked="keyword",C(q)}function J(e,t){if("target"==t)return _.marked="keyword",C(G)}function X(e){return":"==e?C(F,j):x(q,M(";"),F)}function Z(e){if("variable"==e)return _.marked="property",C()}function ee(e,t){return"async"==e?(_.marked="property",C(ee)):"variable"==e||"keyword"==_.style?(_.marked="property","get"==t||"set"==t?C(te):(u&&_.state.fatArrowAt==_.stream.start&&(n=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+n[0].length),C(ne))):"number"==e||"string"==e?(_.marked=s?"property":_.style+" property",C(ne)):"jsonld-keyword"==e?C(ne):u&&w(t)?(_.marked="keyword",C(ee)):"["==e?C(V,ae,M("]"),ne):"spread"==e?C(U,ne):"*"==t?(_.marked="keyword",C(ee)):":"==e?x(ne):void 0;var n}function te(e){return"variable"!=e?x(ne):(_.marked="property",C(ke))}function ne(e){return":"==e?C(U):"("==e?x(ke):void 0}function re(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=_.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),C((function(n,r){return n==t||r==t?x():x(e)}),r)}return i==t||o==t?C():n&&n.indexOf(";")>-1?x(e):C(M(t))}return function(n,i){return n==t||i==t?C():x(e,r)}}function ie(e,t,n){for(var r=3;r<arguments.length;r++)_.cc.push(arguments[r]);return C(R(t,n),re(e,t),F)}function oe(e){return"}"==e?C():x(j,oe)}function ae(e,t){if(u){if(":"==e)return C(ce);if("?"==t)return C(ae)}}function se(e,t){if(u&&(":"==e||"in"==t))return C(ce)}function le(e){if(u&&":"==e)return _.stream.match(/^\s*\w+\s+is\b/,!1)?C(V,ue,ce):C(ce)}function ue(e,t){if("is"==t)return _.marked="keyword",C()}function ce(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(_.marked="keyword",C("typeof"==t?U:ce)):"variable"==e||"void"==t?(_.marked="type",C(he)):"|"==t||"&"==t?C(ce):"string"==e||"number"==e||"atom"==e?C(he):"["==e?C(R("]"),re(ce,"]",","),F,he):"{"==e?C(R("}"),re(de,"}",",;"),F,he):"("==e?C(re(pe,")"),fe,he):"<"==e?C(re(ce,">"),ce):void 0}function fe(e){if("=>"==e)return C(ce)}function de(e,t){return"variable"==e||"keyword"==_.style?(_.marked="property",C(de)):"?"==t||"number"==e||"string"==e?C(de):":"==e?C(ce):"["==e?C(M("variable"),se,M("]"),de):"("==e?x(Ne,de):void 0}function pe(e,t){return"variable"==e&&_.stream.match(/^\s*[?:]/,!1)||"?"==t?C(pe):":"==e?C(ce):"spread"==e?C(pe):x(ce)}function he(e,t){return"<"==t?C(R(">"),re(ce,">"),F,he):"|"==t||"."==e||"&"==t?C(ce):"["==e?C(ce,M("]"),he):"extends"==t||"implements"==t?(_.marked="keyword",C(ce)):"?"==t?C(ce,M(":"),ce):void 0}function me(e,t){if("<"==t)return C(R(">"),re(ce,">"),F,he)}function ge(){return x(ce,ve)}function ve(e,t){if("="==t)return C(ce)}function ye(e,t){return"enum"==t?(_.marked="keyword",C(Ge)):x(be,ae,_e,xe)}function be(e,t){return u&&w(t)?(_.marked="keyword",C(be)):"variable"==e?(S(t),C()):"spread"==e?C(be):"["==e?ie(Ee,"]"):"{"==e?ie(Te,"}"):void 0}function Te(e,t){return"variable"!=e||_.stream.match(/^\s*:/,!1)?("variable"==e&&(_.marked="property"),"spread"==e?C(be):"}"==e?x():"["==e?C(V,M("]"),M(":"),Te):C(M(":"),be,_e)):(S(t),C(_e))}function Ee(){return x(be,_e)}function _e(e,t){if("="==t)return C(U)}function xe(e){if(","==e)return C(ye)}function Ce(e,t){if("keyword b"==e&&"else"==t)return C(R("form","else"),j,F)}function Oe(e,t){return"await"==t?C(Oe):"("==e?C(R(")"),Se,F):void 0}function Se(e){return"var"==e?C(ye,we):"variable"==e?C(we):x(we)}function we(e,t){return")"==e?C():";"==e?C(we):"in"==t||"of"==t?(_.marked="keyword",C(V,we)):x(V,we)}function ke(e,t){return"*"==t?(_.marked="keyword",C(ke)):"variable"==e?(S(t),C(ke)):"("==e?C(A,R(")"),re(Ae,")"),F,le,j,L):u&&"<"==t?C(R(">"),re(ge,">"),F,ke):void 0}function Ne(e,t){return"*"==t?(_.marked="keyword",C(Ne)):"variable"==e?(S(t),C(Ne)):"("==e?C(A,R(")"),re(Ae,")"),F,le,L):u&&"<"==t?C(R(">"),re(ge,">"),F,Ne):void 0}function De(e,t){return"keyword"==e||"variable"==e?(_.marked="type",C(De)):"<"==t?C(R(">"),re(ge,">"),F):void 0}function Ae(e,t){return"@"==t&&C(V,Ae),"spread"==e?C(Ae):u&&w(t)?(_.marked="keyword",C(Ae)):u&&"this"==e?C(ae,_e):x(be,ae,_e)}function Ie(e,t){return"variable"==e?Le(e,t):Re(e,t)}function Le(e,t){if("variable"==e)return S(t),C(Re)}function Re(e,t){return"<"==t?C(R(">"),re(ge,">"),F,Re):"extends"==t||"implements"==t||u&&","==e?("implements"==t&&(_.marked="keyword"),C(u?ce:V,Re)):"{"==e?C(R("}"),Fe,F):void 0}function Fe(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||u&&w(t))&&_.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(_.marked="keyword",C(Fe)):"variable"==e||"keyword"==_.style?(_.marked="property",C(Me,Fe)):"number"==e||"string"==e?C(Me,Fe):"["==e?C(V,ae,M("]"),Me,Fe):"*"==t?(_.marked="keyword",C(Fe)):u&&"("==e?x(Ne,Fe):";"==e||","==e?C(Fe):"}"==e?C():"@"==t?C(V,Fe):void 0}function Me(e,t){if("?"==t)return C(Me);if(":"==e)return C(ce,_e);if("="==t)return C(U);var n=_.state.lexical.prev;return x(n&&"interface"==n.info?Ne:ke)}function je(e,t){return"*"==t?(_.marked="keyword",C(He,M(";"))):"default"==t?(_.marked="keyword",C(V,M(";"))):"{"==e?C(re(Pe,"}"),He,M(";")):x(j)}function Pe(e,t){return"as"==t?(_.marked="keyword",C(M("variable"))):"variable"==e?x(U,Pe):void 0}function Ve(e){return"string"==e?C():"("==e?x(V):x(Ue,Be,He)}function Ue(e,t){return"{"==e?ie(Ue,"}"):("variable"==e&&S(t),"*"==t&&(_.marked="keyword"),C($e))}function Be(e){if(","==e)return C(Ue,Be)}function $e(e,t){if("as"==t)return _.marked="keyword",C(Ue)}function He(e,t){if("from"==t)return _.marked="keyword",C(V)}function qe(e){return"]"==e?C():x(re(U,"]"))}function Ge(){return x(R("form"),be,M("{"),R("}"),re(Ke,"}"),F,F)}function Ke(){return x(be,_e)}function ze(e,t,n){return t.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return L.lex=!0,F.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new T((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new k(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),y(e,t)),t.tokenize!=g&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",function(e,t,n,r,i){var o=e.cc;for(_.state=e,_.stream=i,_.marked=null,_.cc=o,_.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?V:j)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return _.marked?_.marked:"variable"==n&&E(e,r)?"variable-2":t}}(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==g||t.tokenize==v)return e.Pass;if(t.tokenize!=m)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==F)l=l.prev;else if(c!=Ce)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==q||i==G)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var f=l.type,p=s==f;return"vardef"==f?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==f&&"{"==s?l.indented:"form"==f?l.indented+o:"stat"==f?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||d.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||p||0==n.doubleIndentSwitch?l.align?l.column+(p?0:1):l.indented+(p?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:ze,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=V&&t!=U||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(210),n(37)],void 0===(o="function"==typeof(r=function(e,t,r,i){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.ResultViewer=void 0,t=o(t),r=o(r),i=o(i);class s extends t.default.Component{constructor(...e){super(...e),a(this,"viewer",null),a(this,"_node",null)}componentDidMount(){const e=n(10);n(40),n(41),n(31),n(79),n(30),n(42),n(43),n(211);const o=this.props.ResultsTooltip,a=this.props.ImagePreview;if(o||a){n(83);const i=document.createElement("div");e.registerHelper("info","graphql-results",(e,n,s,l)=>{const u=[];return o&&u.push(t.default.createElement(o,{pos:l})),a&&"function"==typeof a.shouldRender&&a.shouldRender(e)&&u.push(t.default.createElement(a,{token:e})),u.length?(r.default.render(t.default.createElement("div",null,u),i),i):(r.default.unmountComponentAtNode(i),null)})}this.viewer=e(this._node,{lineWrapping:!0,value:this.props.value||"",readOnly:!0,theme:this.props.editorTheme||"graphiql",mode:"graphql-results",keyMap:"sublime",foldGutter:{minFoldSize:4},gutters:["CodeMirror-foldgutter"],info:Boolean(this.props.ResultsTooltip||this.props.ImagePreview),extraKeys:i.default})}shouldComponentUpdate(e){return this.props.value!==e.value}componentDidUpdate(){this.viewer&&this.viewer.setValue(this.props.value||"")}componentWillUnmount(){this.viewer=null}render(){return t.default.createElement("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:e=>{e&&(this.props.registerRef(e),this._node=e)}})}getCodeMirror(){return this.viewer}getClientHeight(){return this._node&&this._node.clientHeight}}e.ResultViewer=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t){e.exports=window.ReactDOM},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[],void 0===(o="function"==typeof(r=function(){"use strict";var e=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(n(10)),i=n(28);function o(e,t){var n,r,i=e.levels;return((i&&0!==i.length?i[i.length-1]-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):e.indentLevel)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}r.default.defineMode("graphql-results",(function(e){var t=i.onlineParser({eatWhitespace:function(e){return e.eatSpace()},lexRules:a,parseRules:s,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:o,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}));var a={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},s={Document:[i.p("{"),i.list("Entry",i.p(",")),i.p("}")],Entry:[i.t("String","def"),i.p(":"),"Value"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[i.t("Number","number")],StringValue:[i.t("String","string")],BooleanValue:[i.t("Keyword","builtin")],NullValue:[i.t("Keyword","keyword")],ListValue:[i.p("["),i.list("Value",i.p(",")),i.p("]")],ObjectValue:[i.p("{"),i.list("ObjectField",i.p(",")),i.p("}")],ObjectField:[i.t("String","property"),i.p(":"),"Value"]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(11),n(213),n(215),n(216),n(217),n(218)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a,s){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.DocExplorer=void 0,t=l(t),r=l(r),i=l(i),o=l(o),a=l(a),s=l(s);const c={name:"Schema",title:"Documentation Explorer"};class f extends t.default.Component{constructor(e){super(e),u(this,"handleNavBackClick",()=>{this.state.navStack.length>1&&this.setState({navStack:this.state.navStack.slice(0,-1)})}),u(this,"handleClickType",e=>{this.showDoc(e)}),u(this,"handleClickField",e=>{this.showDoc(e)}),u(this,"handleSearch",e=>{this.showSearch(e)}),this.state={navStack:[c]}}shouldComponentUpdate(e,t){return this.props.schema!==e.schema||this.state.navStack!==t.navStack||this.props.schemaErrors!==e.schemaErrors}render(){const{schema:e,schemaErrors:l}=this.props,u=this.state.navStack,c=u[u.length-1];let f;f=l?t.default.createElement("div",{className:"error-container"},"Error fetching schema"):void 0===e?t.default.createElement("div",{className:"spinner-container"},t.default.createElement("div",{className:"spinner"})):e?c.search?t.default.createElement(a.default,{searchValue:c.search,withinType:c.def,schema:e,onClickType:this.handleClickType,onClickField:this.handleClickField}):1===u.length?t.default.createElement(i.default,{schema:e,onClickType:this.handleClickType}):(0,n.isType)(c.def)?t.default.createElement(s.default,{schema:e,type:c.def,onClickType:this.handleClickType,onClickField:this.handleClickField}):t.default.createElement(r.default,{field:c.def,onClickType:this.handleClickType}):t.default.createElement("div",{className:"error-container"},"No Schema Available");const d=1===u.length||(0,n.isType)(c.def)&&"getFields"in c.def;let p;return u.length>1&&(p=u[u.length-2].name),t.default.createElement("section",{className:"doc-explorer",key:c.name,"aria-label":"Documentation Explorer"},t.default.createElement("div",{className:"doc-explorer-title-bar"},p&&t.default.createElement("button",{className:"doc-explorer-back",onClick:this.handleNavBackClick,"aria-label":"Go back to "+p},p),t.default.createElement("div",{className:"doc-explorer-title"},c.title||c.name),t.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),t.default.createElement("div",{className:"doc-explorer-contents"},d&&t.default.createElement(o.default,{value:c.search,placeholder:`Search ${c.name}...`,onSearch:this.handleSearch}),f))}showDoc(e){const t=this.state.navStack;t[t.length-1].def!==e&&this.setState({navStack:t.concat([{name:e.name,def:e}])})}showDocForReference(e){e&&"Type"===e.kind?this.showDoc(e.type):"Field"===e.kind||"Argument"===e.kind&&e.field?this.showDoc(e.field):"EnumValue"===e.kind&&e.type&&this.showDoc(e.type)}showSearch(e){const t=this.state.navStack.slice(),n=t[t.length-1];t[t.length-1]={...n,search:e},this.setState({navStack:t})}reset(){this.setState({navStack:[c]})}}e.DocExplorer=f})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(56),n(214),n(57),n(34)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({field:e,onClickType:a}){const[s,l]=t.default.useState(!1);let u,c,f;if(e&&"args"in e&&e.args.length>0){u=t.default.createElement("div",{id:"doc-args",className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"arguments"),e.args.filter(e=>!e.deprecationReason).map(e=>t.default.createElement("div",{key:e.name,className:"doc-category-item"},t.default.createElement("div",null,t.default.createElement(n.default,{arg:e,onClickType:a})),t.default.createElement(i.default,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&t.default.createElement(i.default,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))));const r=e.args.filter(e=>Boolean(e.deprecationReason));r.length>0&&(c=t.default.createElement("div",{id:"doc-deprecated-args",className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"deprecated arguments"),s?r.map((e,r)=>t.default.createElement("div",{key:r},t.default.createElement("div",null,t.default.createElement(n.default,{arg:e,onClickType:a})),t.default.createElement(i.default,{className:"doc-value-description",markdown:e.description}),e&&"deprecationReason"in e&&t.default.createElement(i.default,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}))):t.default.createElement("button",{className:"show-btn",onClick:()=>l(!s)},"Show deprecated arguments...")))}return e&&e.astNode&&e.astNode.directives&&e.astNode.directives.length>0&&(f=t.default.createElement("div",{id:"doc-directives",className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"directives"),e.astNode.directives.map(e=>t.default.createElement("div",{key:e.name.value,className:"doc-category-item"},t.default.createElement("div",null,t.default.createElement(r.default,{directive:e})))))),t.default.createElement("div",null,t.default.createElement(i.default,{className:"doc-type-description",markdown:(null==e?void 0:e.description)||"No Description"}),e&&"deprecationReason"in e&&t.default.createElement(i.default,{className:"doc-deprecation",markdown:null==e?void 0:e.deprecationReason}),t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"type"),t.default.createElement(o.default,{type:null==e?void 0:e.type,onClick:a})),u,f,c)},t=a(t),n=a(n),r=a(r),i=a(i),o=a(o)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({directive:e}){return t.default.createElement("span",{className:"doc-category-item",id:e.name.value},"@",e.name.value)},t=(n=t)&&n.__esModule?n:{default:n}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(34),n(57)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function({schema:e,onClickType:i}){const o=e.getQueryType(),a=e.getMutationType&&e.getMutationType(),s=e.getSubscriptionType&&e.getSubscriptionType();return t.default.createElement("div",null,t.default.createElement(r.default,{className:"doc-type-description",markdown:e.description||"A GraphQL schema provides a root type for each kind of operation."}),t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"root types"),t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"query"),": ",t.default.createElement(n.default,{type:o,onClick:i})),a&&t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"mutation"),": ",t.default.createElement(n.default,{type:a,onClick:i})),s&&t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("span",{className:"keyword"},"subscription"),": ",t.default.createElement(n.default,{type:s,onClick:i}))))},t=i(t),n=i(n),r=i(r)})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(85)],void 0===(o="function"==typeof(r=function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=r(t),n=r(n);class o extends t.default.Component{constructor(e){super(e),i(this,"debouncedOnSearch",void 0),i(this,"handleChange",e=>{const t=e.currentTarget.value;this.setState({value:t}),this.debouncedOnSearch(t)}),i(this,"handleClear",()=>{this.setState({value:""}),this.props.onSearch("")}),this.state={value:e.value||""},this.debouncedOnSearch=(0,n.default)(200,this.props.onSearch)}render(){return t.default.createElement("label",{className:"search-box"},t.default.createElement("div",{className:"search-box-icon","aria-hidden":"true"},"⚲"),t.default.createElement("input",{value:this.state.value,onChange:this.handleChange,type:"text",placeholder:this.props.placeholder,"aria-label":this.props.placeholder}),this.state.value&&t.default.createElement("button",{className:"search-box-clear",onClick:this.handleClear,"aria-label":"Clear search input"},"✕"))}}e.default=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(56),n(34)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=i(t),n=i(n),r=i(r);class o extends t.default.Component{shouldComponentUpdate(e){return this.props.schema!==e.schema||this.props.searchValue!==e.searchValue}render(){const e=this.props.searchValue,i=this.props.withinType,o=this.props.schema,s=this.props.onClickType,l=this.props.onClickField,u=[],c=[],f=[],d=o.getTypeMap();let p=Object.keys(d);i&&(p=p.filter(e=>e!==i.name),p.unshift(i.name));for(const o of p){if(u.length+c.length+f.length>=100)break;const p=d[o];if(i!==p&&a(o,e)&&c.push(t.default.createElement("div",{className:"doc-category-item",key:o},t.default.createElement(r.default,{type:p,onClick:s}))),p&&"getFields"in p){const c=p.getFields();Object.keys(c).forEach(d=>{const h=c[d];let m;if(!a(d,e)){if(!("args"in h)||!h.args.length)return;if(m=h.args.filter(t=>a(t.name,e)),0===m.length)return}const g=t.default.createElement("div",{className:"doc-category-item",key:o+"."+d},i!==p&&[t.default.createElement(r.default,{key:"type",type:p,onClick:s}),"."],t.default.createElement("a",{className:"field-name",onClick:e=>l(h,p,e)},h.name),m&&["(",t.default.createElement("span",{key:"args"},m.map(e=>t.default.createElement(n.default,{key:e.name,arg:e,onClickType:s,showDefaultValue:!1}))),")"]);i===p?u.push(g):f.push(g)})}}return u.length+c.length+f.length===0?t.default.createElement("span",{className:"doc-alert-text"},"No results found."):i&&c.length+f.length>0?t.default.createElement("div",null,u,t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"other results"),c,f)):t.default.createElement("div",{className:"doc-search-items"},u,c,f)}}function a(e,t){try{const n=t.replace(/[^_0-9A-Za-z]/g,e=>"\\"+e);return-1!==e.search(new RegExp(n,"i"))}catch(n){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}}e.default=o})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(11),n(56),n(57),n(34),n(84)],void 0===(o="function"==typeof(r=function(e,t,n,r,i,o,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=s(t),r=s(r),i=s(i),o=s(o),a=s(a);class l extends t.default.Component{constructor(e){var t,n,r;super(e),r=()=>this.setState({showDeprecated:!0}),(n="handleShowDeprecated")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.state={showDeprecated:!1}}shouldComponentUpdate(e,t){return this.props.type!==e.type||this.props.schema!==e.schema||this.state.showDeprecated!==t.showDeprecated}render(){const e=this.props.schema,r=this.props.type,a=this.props.onClickType,s=this.props.onClickField;let l,f,d,p,h,m=null,g=[];if(r instanceof n.GraphQLUnionType?(m="possible types",g=e.getPossibleTypes(r)):r instanceof n.GraphQLInterfaceType?(m="implementations",g=e.getPossibleTypes(r)):r instanceof n.GraphQLObjectType&&(m="implements",g=r.getInterfaces()),g&&g.length>0&&(l=t.default.createElement("div",{id:"doc-types",className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},m),g.map(e=>t.default.createElement("div",{key:e.name,className:"doc-category-item"},t.default.createElement(o.default,{type:e,onClick:a}))))),r&&"getFields"in r){const e=r.getFields(),n=Object.keys(e).map(t=>e[t]);f=t.default.createElement("div",{id:"doc-fields",className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"fields"),n.filter(e=>!e.deprecationReason).map(e=>t.default.createElement(u,{key:e.name,type:r,field:e,onClickType:a,onClickField:s})));const i=n.filter(e=>Boolean(e.deprecationReason));i.length>0&&(d=t.default.createElement("div",{id:"doc-deprecated-fields",className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"deprecated fields"),this.state.showDeprecated?i.map(e=>t.default.createElement(u,{key:e.name,type:r,field:e,onClickType:a,onClickField:s})):t.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated fields...")))}if(r instanceof n.GraphQLEnumType){const e=r.getValues();p=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"values"),e.filter(e=>Boolean(!e.deprecationReason)).map(e=>t.default.createElement(c,{key:e.name,value:e})));const n=e.filter(e=>Boolean(e.deprecationReason));n.length>0&&(h=t.default.createElement("div",{className:"doc-category"},t.default.createElement("div",{className:"doc-category-title"},"deprecated values"),this.state.showDeprecated?n.map(e=>t.default.createElement(c,{key:e.name,value:e})):t.default.createElement("button",{className:"show-btn",onClick:this.handleShowDeprecated},"Show deprecated values...")))}return t.default.createElement("div",null,t.default.createElement(i.default,{className:"doc-type-description",markdown:"description"in r&&r.description||"No Description"}),r instanceof n.GraphQLObjectType&&l,f,d,p,h,!(r instanceof n.GraphQLObjectType)&&l)}}function u({type:e,field:n,onClickType:s,onClickField:l}){return t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("a",{className:"field-name",onClick:t=>l(n,e,t)},n.name),"args"in n&&n.args&&n.args.length>0&&["(",t.default.createElement("span",{key:"args"},n.args.filter(e=>!e.deprecationReason).map(e=>t.default.createElement(r.default,{key:e.name,arg:e,onClickType:s}))),")"],": ",t.default.createElement(o.default,{type:n.type,onClick:s}),t.default.createElement(a.default,{field:n}),n.description&&t.default.createElement(i.default,{className:"field-short-description",markdown:n.description}),"deprecationReason"in n&&n.deprecationReason&&t.default.createElement(i.default,{className:"doc-deprecation",markdown:n.deprecationReason}))}function c({value:e}){return t.default.createElement("div",{className:"doc-category-item"},t.default.createElement("div",{className:"enum-value"},e.name),t.default.createElement(i.default,{className:"doc-value-description",markdown:e.description}),e.deprecationReason&&t.default.createElement(i.default,{className:"doc-deprecation",markdown:e.deprecationReason}))}e.default=l})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14),n(220),n(86)],void 0===(o="function"==typeof(r=function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(e,"__esModule",{value:!0}),e.QueryHistory=void 0,t=i(t),n=i(n),r=i(r);class s extends t.default.Component{constructor(e){super(e),a(this,"historyStore",void 0),a(this,"onUpdateHistory",(e,t,n,r)=>{this.historyStore.updateHistory(e,t,n,r),this.setState({queries:this.historyStore.queries})}),a(this,"onHandleEditLabel",(e,t,n,r,i,o)=>{this.historyStore.editLabel(e,t,n,r,i,o),this.setState({queries:this.historyStore.queries})}),a(this,"onToggleFavorite",(e,t,n,r,i,o)=>{this.historyStore.toggleFavorite(e,t,n,r,i,o),this.setState({queries:this.historyStore.queries})}),this.historyStore=new r.default(this.props.storage,this.props.maxHistoryLength);const t=this.historyStore.queries;this.state={queries:t}}render(){const e=this.state.queries.slice().reverse().map((e,r)=>t.default.createElement(n.default,o({handleEditLabel:this.onHandleEditLabel,handleToggleFavorite:this.onToggleFavorite,key:`${r}:${e.label||e.query}`,onSelect:this.props.onSelectQuery},e)));return t.default.createElement("section",{"aria-label":"History"},t.default.createElement("div",{className:"history-title-bar"},t.default.createElement("div",{className:"history-title"},"History"),t.default.createElement("div",{className:"doc-explorer-rhs"},this.props.children)),t.default.createElement("ul",{className:"history-contents"},e))}}e.QueryHistory=s})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(14)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=(n=t)&&n.__esModule?n:{default:n};class r extends t.default.Component{constructor(e){super(e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"editField",void 0),this.state={editable:!1},this.editField=null}render(){var e;const n=this.props.label||this.props.operationName||(null===(e=this.props.query)||void 0===e?void 0:e.split("\n").filter(e=>0!==e.indexOf("#")).join("")),r=this.props.favorite?"★":"☆";return t.default.createElement("li",{className:this.state.editable?"editable":void 0},this.state.editable?t.default.createElement("input",{type:"text",defaultValue:this.props.label,ref:e=>{this.editField=e},onBlur:this.handleFieldBlur.bind(this),onKeyDown:this.handleFieldKeyDown.bind(this),placeholder:"Type a label"}):t.default.createElement("button",{className:"history-label",onClick:this.handleClick.bind(this)},n),t.default.createElement("button",{onClick:this.handleEditClick.bind(this),"aria-label":"Edit label"},"✎"),t.default.createElement("button",{className:this.props.favorite?"favorited":void 0,onClick:this.handleStarClick.bind(this),"aria-label":this.props.favorite?"Remove favorite":"Add favorite"},r))}handleClick(){this.props.onSelect(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label)}handleStarClick(e){e.stopPropagation(),this.props.handleToggleFavorite(this.props.query,this.props.variables,this.props.headers,this.props.operationName,this.props.label,this.props.favorite)}handleFieldBlur(e){e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.target.value,this.props.favorite)}handleFieldKeyDown(e){13===e.keyCode&&(e.stopPropagation(),this.setState({editable:!1}),this.props.handleEditLabel(this.props.query,this.props.variables,this.props.headers,this.props.operationName,e.currentTarget.value,this.props.favorite))}handleEditClick(e){e.stopPropagation(),this.setState({editable:!0},()=>{this.editField&&this.editField.focus()})}}e.default=r})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=class{constructor(e,t,n=null){this.key=e,this.storage=t,this.maxSize=n,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"items",void 0),this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=class{constructor(){var e,t,n;n=[],(t="sizes")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}updateSizes(e){e.forEach((e,t)=>{if(e){const n=e.getClientHeight();if(t<=this.sizes.length&&n!==this.sizes[t]){const t=e.getCodeMirror();t&&t.setSize(null,null)}this.sizes[t]=n}})}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=class{constructor(e){var t,n,r;r=void 0,(n="storage")in(t=this)?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,this.storage=e||("undefined"!=typeof window?window.localStorage:null)}get(e){if(this.storage){const t=this.storage.getItem("graphiql:"+e);if("null"===t||"undefined"===t)return this.storage.removeItem("graphiql:"+e),null;if(t)return t}return null}set(e,t){let n=!1,r=null;if(this.storage){const i="graphiql:"+e;if(t)try{this.storage.setItem(i,t)}catch(e){r=e,n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,e)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>e.name&&e.name.value);if(t&&-1!==r.indexOf(t))return t;if(t&&e){const n=e.map(e=>e.name&&e.name.value).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e){if(!("getFields"in e))return[];const n=e.getFields();if(n.id)return["id"];if(n.edges)return["edges"];if(n.node)return["node"];const r=[];return Object.keys(n).forEach(e=>{(0,t.isLeafType)(n[e].type)&&r.push(e)}),r}function r(e,t){if(0===t.length)return e;let n="",r=0;return t.forEach(({index:t,string:i})=>{n+=e.slice(r,t)+i,r=t}),n+=e.slice(r),n}Object.defineProperty(e,"__esModule",{value:!0}),e.fillLeafs=function(e,i,o){const a=[];if(!e||!i)return{insertions:a,result:i};let s;try{s=(0,t.parse)(i)}catch(e){return{insertions:a,result:i}}const l=o||n,u=new t.TypeInfo(e);return(0,t.visit)(s,{leave(e){u.leave(e)},enter(e){if(u.enter(e),"Field"===e.kind&&!e.selectionSet){const n=function e(n,r){const i=(0,t.getNamedType)(n);if(!n||(0,t.isLeafType)(n))return;const o=r(i);return Array.isArray(o)&&0!==o.length&&"getFields"in i?{kind:t.Kind.SELECTION_SET,selections:o.map(n=>{const o=i.getFields()[n],a=o?o.type:null;return{kind:t.Kind.FIELD,name:{kind:t.Kind.NAME,value:n},selectionSet:e(a,r)}})}:void 0}(function(e){if(e)return e}(u.getType()),l);if(n&&e.loc){const r=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.substring(n,r)}(i,e.loc.start);a.push({index:e.loc.end,string:" "+(0,t.print)(n).replace(/\n/g,"\n"+r)})}}}}),{insertions:a,result:r(i,a)}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLeft=function(e){let t=0,n=e;for(;n.offsetParent;)t+=n.offsetLeft,n=n.offsetParent;return t},e.getTop=function(e){let t=0,n=e;for(;n.offsetParent;)t+=n.offsetTop,n=n.offsetParent;return t}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t,n(11)],void 0===(o="function"==typeof(r=function(e,t){"use strict";function n(e,t){const n=new Map,r=[];for(const i of e)if("Field"===i.kind){const e=t(i),o=n.get(e);if(i.directives&&i.directives.length){const e={...i};r.push(e)}else if(o&&o.selectionSet&&i.selectionSet)o.selectionSet.selections=[...o.selectionSet.selections,...i.selectionSet.selections];else if(!o){const t={...i};n.set(e,t),r.push(t)}}else r.push(i);return r}function r(e,n,i){const o=i?(0,t.getNamedType)(i).name:null,a=[],s=[];for(let u of n){var l;if("FragmentSpread"===u.kind){const n=u.name.value;if(!u.directives||0===u.directives.length){if(s.indexOf(n)>=0)continue;s.push(n)}const r=e[u.name.value];if(r){const{typeCondition:e,directives:n,selectionSet:i}=r;u={kind:t.Kind.INLINE_FRAGMENT,typeCondition:e,directives:n,selectionSet:i}}}if(u.kind===t.Kind.INLINE_FRAGMENT&&(!u.directives||0===(null===(l=u.directives)||void 0===l?void 0:l.length))){const t=u.typeCondition?u.typeCondition.name.value:null;if(!t||t===o){a.push(...r(e,u.selectionSet.selections,i));continue}}a.push(u)}return a}Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueBy=n,e.inlineRelevantFragmentSpreads=r,e.default=function(e,i){const o=i?new t.TypeInfo(i):null,a=Object.create(null);for(const n of e.definitions)n.kind===t.Kind.FRAGMENT_DEFINITION&&(a[n.name.value]=n);const s={SelectionSet(e){const t=o?o.getParentType():null;let{selections:i}=e;return i=r(a,i,t),i=n(i,e=>e.alias?e.alias.value:e.name.value),{...e,selections:i}},FragmentDefinition:()=>null};return(0,t.visit)(e,o?(0,t.visitWithTypeInfo)(o,s):s)}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.introspectionQueryName=e.staticName=void 0,e.staticName="IntrospectionQuery",e.introspectionQueryName="IntrospectionQuery"})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";function r(e,t,n){if("object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n<t.length;n++)e[n]=r(e[n],t[n]);else for(n in t)e[n]=r(e[n],t[n]);return e}return t}function i(e,t,n){t.split&&(t=t.split("."));for(var i,o,a=0,s=t.length,l=e;a<s&&("__proto__"!==(o=t[a++])&&"constructor"!==o&&"prototype"!==o);)l=l[o]=a===s?r(l[o],n):typeof(i=l[o])==typeof t?i:0*t[a]!=0||~(""+t[a]).indexOf(".")?{}:[]}n.r(t),n.d(t,"merge",(function(){return r})),n.d(t,"dset",(function(){return i}))}]).default;
//# sourceMappingURL=graphiql.min.js.map